NetBeans editor supports syntax highlighting and validation for several languages as Java, PHP, JavaScript, HTML. But if your file has different extension e.g. .template, NetBeans is unable to recognise the language. What you have to do if you want to turn on highlighting for Smarty or Velocity templates?
In Netbeans, choose Options from Tools menu. Choose Miscellaneous, then Files. On this tab you have the list of all file extensions that are supported by NetBeans editor.
Click New... button and enter new file extension e.g. "template". Then choose corresponding Associated File Type (MIME): HTML Files (text/html).
All .template files will be recognised as html with syntax highlighting and validation.
In Netbeans, choose Options from Tools menu. Choose Miscellaneous, then Files. On this tab you have the list of all file extensions that are supported by NetBeans editor.
Click New... button and enter new file extension e.g. "template". Then choose corresponding Associated File Type (MIME): HTML Files (text/html).
All .template files will be recognised as html with syntax highlighting and validation.
No comments:
Post a Comment