| 5 | | TextMate organizes most of its features, including snippets, macros, templates, and drag-and-drop behaviors, into language-specific "bundles." There's a Django bundle, though it is not among the ones included with the application; you have to fetch it from the repository (instructions here: http://macromates.com/wiki/Main/Bundles). It handles both Django templates and Django Python code. |
| | 7 | There's a Django bundle, though it's not among the ones included with the application; you have to fetch it from the repository (instructions here: http://macromates.com/wiki/Main/Bundles). It handles both Django templates and Django Python code. The bundle's Python snippets are built for the magic-removal branch of Django. |
| | 8 | |
| | 9 | The Django-Python syntax in particular is a work in progress, and suggestions and contributions are welcome. |
| | 10 | |
| | 11 | == Syntax coloring examples == |
| | 12 | |
| | 13 | Stock HTML mode: |
| | 14 | |
| | 15 | http://e-scribe.com/img/django_textmate/templ_html.png |
| | 16 | |
| | 17 | Django template mode: |
| | 18 | |
| | 19 | http://e-scribe.com/img/django_textmate/templ_django.png |
| | 20 | |
| | 21 | Stock Python mode: |
| | 22 | |
| | 23 | http://e-scribe.com/img/django_textmate/code_python.png |
| | 24 | |
| | 25 | Django Python mode: |
| | 26 | |
| | 27 | http://e-scribe.com/img/django_textmate/code_django.png |