Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable syntax highlighting for *.handlebars files within Netbeans 8

Perhaps this question might be silly, but I need some help. I did the upgrade from Netbeans 7.1 to Netbeans 8, in order to get more functionality and I'm involved in a project that uses handlebars. The problem is I can not find a way to highlight this file. I've tried to go to tools-> options-> Miscellaneous->file and change the file extension and file type associated with no results.

Can you help me with this issue or give me other alternatives that support web editor handlebars?

thank you

like image 408
Juan Jardim Avatar asked Mar 20 '14 12:03

Juan Jardim


People also ask

How to highlight code in Netbeans?

To quickly do this: Select the section of code you want surrounded. Press Alt + Enter.

What is syntax highlighting in Java?

Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.


1 Answers

I followed this link and applied the HTML mime type and worked fine.

This are the instructions from the webpage:

Go to Netbeans -> Preferences -> Miscellaneous -> Files on a Mac
or Tools -> Options -> Miscellaneous -> Files on Windows

Leave "File Extensions" as "< Choose the extension >" and click the "New" button.

Type in the extension without the dot.

Select the appropriate file type from the "Associated file type (MIME)" drop down box.

http://www.electrictoolbox.com/netbeans-syntax-highlighting-file-extensions/

like image 164
Giancarlo Corzo Avatar answered Sep 27 '22 15:09

Giancarlo Corzo