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!

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top