Question

I know there are some answers around, but all incomplete.
Can't get a working .sass syntax highlighting.
I followed all the steps described in the official guide, but no luck.

Steps made:
copied from css file:

# cp /usr/share/geany/filetypes.css ~/.config/geany/filedefs/filetypes.sass.conf

with the needed .sass.conf extension. I've set the

extension=.sass

(at this point in geany Document menu I can already find the new file type "sass file")

I copied and edited filetype_extensions.conf in my ~/.config/geany adding:

SASS=*.sass;

Now, I guess only one thing's missing, the lexer_filetype and/or tag_parser declaration in the former filetypes.sass.conf, but I can't find many informations about this. What are available lexer? I tried with a simple lexer_filetype=css and tag_parser=css but nothing.

Any clue from anyone who managed to run this before?

Was it helpful?

Solution

Most names are case-sensitive. It should work if you use lexer_filetype=CSS. Also, I'm not positive, but you might want to name the file as filetypes.SASS.conf even it's not required (not sure), it's somewhat of a convention for custom filetypes.

Sadly, if you want to find the available lexer filetypes, you'll have to read the source.

OTHER TIPS

geany saves the filetype of an opened file!

If you change the filetype-definitions you must try another file to test your new definitions. Closing and reopening the same file is not enough.

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