Add syntax highlighting to .less-files in NetBeans

Rasmus picture Rasmus · Jul 6, 2010 · Viewed 14.2k times · Source

I want to have files with a .less extension use the CSS syntax highlighting in NetBeans, and I don't have any clue how to do this.

I found a rather time consuming way to do this (http://netbeans.dzone.com/tips/quickstart-guide-language-supp), but it hit me that it must be easier way to do this.

Anyone knows?

Answer

Maxence picture Maxence · Jul 18, 2010

You just have to add a new file type in Netbeans > Tools > Options > Miscellaneous > Files. Note that Netbeans will mark as errors some less features like variables...etc