0

I was previously using Sublime Text editor and HTML syntax highlighting worked out of the box for .ntl files.

I have just installed Visual Studio Code and it is not applying syntax highlighting to an .ntl file.

This answer shows how to manually apply a specific syntax highlighting to the code:

https://stackoverflow.com/a/30776845

But I am just wondering how you can associated .ntl files with HTML syntax highlighting.

For context, the .ntl file is used as a simple template engine in an Node.js/Express application, see:

https://expressjs.com/en/advanced/developing-template-engines.html

user1063287
  • 10,265
  • 25
  • 122
  • 218

1 Answers1

0

Ctrl+Shift+P >
Change Language Mode > Configure File Association for '.ntl'... > HTML.

Per this answer.

Also see:

https://code.visualstudio.com/docs/languages/overview#_language-identifier

user1063287
  • 10,265
  • 25
  • 122
  • 218