Version 7 (modified by pb@…, 19 years ago) ( diff )

added screen shots, tweaked text

Using TextMate with Django

TextMate is a popular text editor for OS X. http://macromates.com/

One of the most interesting features is the ability to define "snippets", abbreviations which can be expanded into larger blocks of text containing placeholders. 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'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.

The Django-Python syntax in particular is a work in progress, and suggestions and contributions are welcome.

Syntax coloring examples

Stock HTML mode:

http://e-scribe.com/img/django_textmate/templ_html.png

Django template mode:

http://e-scribe.com/img/django_textmate/templ_django.png

Stock Python mode:

http://e-scribe.com/img/django_textmate/code_python.png

Django Python mode:

http://e-scribe.com/img/django_textmate/code_django.png

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.
Back to Top