Enabling Django template syntax highlighting in Geany
Geany is a lightweight but surprisingly powerful GTK-based IDE. Here’s how to enable syntax highlighting for Django’s template tags in HTML files:
- Copy /usr/share/geany/filetypes.html to ~/.config/geany/filedefs/
- Find the [lexer_properties] section of the file and add:
lexer.html.django=1
Geany uses Scintilla as its highlighting engine so have a look at their documentation for a full list of the available lexer options.
3 Comments
→
Thank you so much. Now I can use my favourite IDE to work with Django projects.
it works
I was searching how to enable this, since I saw today that scintilla already have this highlight. Thank you, Doc.