1
votes

So I have some project files all with .txt extensions which are really HTML templates. I am trying to syntax highlight those .txt files as HTML using Webstorm. Any tips on how to do that?

1
I fixed the grammar in the body, tweaked the title, changed some irrelevant tags for one that describes what you're actually after, and removed "thanks". - Nathan Tuggy

1 Answers

2
votes

Open File > Settings > Editor > File Types > HTML files and add your extension to registered patterns in the right panel.

Source