Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
howtos:geany_and_django [2013/10/19 14:30] – Add section "Live Preview in Geany" enrico | howtos:geany_and_django [2014/02/02 10:35] – enrico |
---|
http://www.drhevans.com/blog/posts/261-enabling-django-template-syntax-highlighting-in-geany/)) | http://www.drhevans.com/blog/posts/261-enabling-django-template-syntax-highlighting-in-geany/)) |
| |
<code ini> | <file ini ~/.config/geany/filedefs/filetypes.html> |
[lexer_properties] | [lexer_properties] |
lexer.html.django=1 | lexer.html.django=1 |
</code> | </file> |
| |
More information about this file, its format and the path, e.g. on Windows, | More information about this file, its format and the path, e.g. on Windows, |
===== Twig/Symfony2 Support ===== | ===== Twig/Symfony2 Support ===== |
| |
If you want to add detction/highlighting of [[http://en.wikipedia.org/wiki/Twig_%28template_engine%29|Twig/Symfony2]] files (based on Django's templates) when opening in Geany, add ''*.html.twig'' to the ''HTML'' key in the ''filetype_extensions.conf'' file. For more information on ''filetype_extensions.conf'', see the [[http://www.geany.org/manual/dev/index.html#filetype-extensions|Filetype extensions section]] of the [[http://www.geany.org/manual/current/index.html|Geany User Manual]]. | If you want to add detection/highlighting of [[http://en.wikipedia.org/wiki/Twig_%28template_engine%29|Twig/Symfony2]] files (based on Django's templates) when opening in Geany, add ''*.html.twig'' to the ''HTML'' key in the ''filetype_extensions.conf'' file. For more information on ''filetype_extensions.conf'', see the [[http://www.geany.org/manual/dev/index.html#filetype-extensions|Filetype extensions section]] of the [[http://www.geany.org/manual/current/index.html|Geany User Manual]]. |
| |
{{tag>howto python django twig symfony2 snippets}} | {{tag>howto python django twig symfony2 snippets}} |