guy mograbi
guy mograbi

Reputation: 28608

How to tell intellij to highlight a string as HTML?

Usually in intellij is automatically detects that a string is HTML, in which case intellij knows to highlight the string as HTML, making the tags in a special color etc.

But every now and then I come across a string which contains HTML but it is not highlighted.

How can I manually tell intellij to identify the string as HTML?

Upvotes: 2

Views: 231

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401975

You can configure a custom code injection using intention action for the string:

injection

Upvotes: 1

Related Questions