Question

Is there any way to add syntax highlighting for *.less files in Geany? I found that using *.css syntax higlighting, sugessted somewhere in the internet is not enough for me, and in fact it making bloody mess from any more complicated *.less stylesheet.

I really like Geany, so changing IDE is not an option.

Thanks in advance!

Was it helpful?

Solution

I would suggest you to write your own highlighting.

In this case you should edit file filetype_extensions.conf, create a file filetype.less (see other filetypes for examples, preferably those similar to .less - like .css) and maybe play around with filetype.conf.

On the other hand, if you never work with .css files, you could just edit corresponding configuration files to set up the highlighting you would enjoy.

If this is still not enough, you may have take another editor (with designed highlighting for .less files), see how the highlighting is organised there and then reproduce it with geany.

This may be overcomplicated solution, though I don't insist it's the only one.

OTHER TIPS

On Geany menu: Tools -> Configurations Files -> filetype_extensions.conf

Change:

CSS=*.css;

With:

CSS=*.css;*.scss;*.less;

And your *.less file will be highlighted enough to start to work

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top