Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:geany_and_django [2012/08/29 19:37] – add Django tags styling information enrico | howtos:geany_and_django [2014/02/02 10:49] (current) – Add an example for fne tuned styling enrico | ||
---|---|---|---|
Line 21: | Line 21: | ||
http:// | http:// | ||
- | <code ini> | + | <file ini ~/ |
[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, | ||
Line 46: | Line 46: | ||
will be styled with // | will be styled with // | ||
// | // | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <file ini ~/ | ||
+ | [styling] | ||
+ | # foreground; | ||
+ | html_asp=# | ||
+ | python_identifier=keyword_1, | ||
+ | python_default=default | ||
+ | </ | ||
+ | |||
+ | The example above makes '' | ||
+ | |||
For more information about configuring styles, please check the manual [[http:// | For more information about configuring styles, please check the manual [[http:// | ||
Line 100: | Line 113: | ||
Tags for django (version 1.4.1) can be found [[http:// | Tags for django (version 1.4.1) can be found [[http:// | ||
- | {{tag> | + | ===== Live Preview in Geany ===== |
+ | |||
+ | Using the great //Web helper// plugin (from the [[http:// | ||
+ | you can view and test your site directly in Geany without switching to an external browser. | ||
+ | |||
+ | Simply enable the //Web helper// plugin in Geany' | ||
+ | and enable the option " | ||
+ | |||
+ | Then you will get a new tab "Web preview" | ||
+ | to show up) and you can enter any weg page address, e.g. those of your currently edited Django project. | ||
+ | Below is a screenshot demonstrating the plugin: the opened web page on the left, the template code on the right | ||
+ | and in the terminal window at the bottom, Django' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | This way you can edit your Django and template code in Geany as usual and have it automatically shown | ||
+ | as web page in the //Web helper// plugin without the need of switching to an external browser, and | ||
+ | the Django debug server can also be ran in Geany, using the embedded terminal. | ||
+ | |||
+ | |||
+ | ===== Twig/ | ||
+ | |||
+ | If you want to add detection/ | ||
+ | |||
+ | {{tag> |