Skip to content

Enabling Django template syntax highlighting in Geany

February 17th, 2011

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:

  1. Copy /usr/share/geany/filetypes.html to ~/.config/geany/filedefs/
  2. 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.

From → Misc. / Other

3 Comments
  1. Thank you so much. Now I can use my favourite IDE to work with Django projects.

  2. it works :)

  3. I was searching how to enable this, since I saw today that scintilla already have this highlight. Thank you, Doc.

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS