B
B
bogfront2016-07-14 17:50:15
Angular
bogfront, 2016-07-14 17:50:15

How to highlight html syntax in typescript file in PHPStorm?

Can you please tell me how to make the IDE distinguish the template syntax in the TypeScript file.
Switched to Angular 2. There was a problem with the complexity of template initialization.
0f57b196217b4e2197aae17314e77510.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bromzh, 2016-07-14
@bromzh

Because highlighting only works for the field named template, not templateUrl.
It also happens that the IDE is stupid. This happens to me from time to time: the storm stops recognizing the built-in template and shows it as a string. Reloading the IDE should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question