Code


Version 16 (modified by justinlilly@…, 7 years ago) (diff)

listing textmate alternative that also works with TM bundles/themes

Using TextMate with Django

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

(for those of us not lucky enough to have a mac, check out e http://e-texteditor.com for a similar application)

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. It handles both Django templates and Django Python code. The bundle's Python snippets are built for the magic-removal branch of Django.

The TextMate blog lists instructions here:

http://macromates.com/blog/archives/2006/08/21/getting-more-bundles/

Note that the link to download the Django bundle in the blog entry is incorrect. The correct link is:

http://projects.validcode.net/getbundle

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

Textmate theme based on Django's website and trac color scheme

As a homage to Django and its website's pleasant color scheme I created a basic textmate theme.

I hope you enjoy as I do, green is such a nice color. It's attached to this wiki page --Jannis

Screenshot (large):

django textmate theme screenshot (small)

New Django (Smoothy) theme:

http://jannis.leidel.info/wp-content/uploads/2007/05/smoothy.png

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