Django and Django-Template Syntax Highlighting for Coda
I recently started playing with Panic’s web development application, Coda, and I immediately liked its all-in-one approach. As a Django developer, I typically work with multiple text editor, terminal, and browser windows. This can sometimes get out of hand, especially on a laptop. Coda can improve this situation by keeping all these tools and more within a single application.
All of this looked very promising until I realized that Coda does not offer out-of-the-box Django and Django-Template syntax highlighting or autocompletion. Thus, I decided to write a couple of Mode bundles to improve the situation. You may download these bundles and place them in your /Users/username/Library/Application\ Support/Coda/modes directory for instant gratification.

I am still developing these bundles to make them smarter, more lexically complete, and more integrated with Coda. Please let me know about your experience with them and I will try to make them better.
Posted by Juan Pablo Claude on September 27th, 2008 under Django.
Comments: 16
Comments
Comment from Ludwig Pettersson
Time: September 28, 2008, 7:31 pm
I’ve been thinking about doing this myself for a while, but I never got around to it. Awesome!
Comment from Peter Herndon
Time: October 3, 2008, 10:37 am
Juan, the Django mode seems to have killed the ability to comment a line. While I can insert a # manually, I can’t use the Text,Un/Comment Selection menu command, nor does the Cmd-/ shortcut work.
Interestingly, the template mode comment command works as expected, JavaScript portions comment as JS, HTML comments as HTML. Hmm, Django-template comments do not work, though.
Comment from Juan Pablo Claude
Time: October 3, 2008, 2:18 pm
Thanks for the feedback, Peter. I will be looking at the problem soon and posting any progress here.
Comment from Brent O’Connor
Time: October 14, 2008, 8:42 am
Thanks for taking the time to make these different modes for Coda. BTW, Any idea on how to hide pyc files in Coda in the file browser on the left pane?
Comment from Heath Gerlock
Time: November 13, 2008, 3:48 pm
Great tools and very helpful! Thanks so much for sharing
Blessings,
Heath @ 5Q
Comment from paul volk
Time: December 24, 2008, 1:03 am
man i love the interwebs! started writing a django template in coda, groused to myself about it not recognizing the syntax, googled, and in less than a minute i am looking at properly syntax-colored django templates.
you rock juan pablo!
Comment from George Markleyville
Time: January 1, 2009, 12:05 pm
You really should submit this to the Coding Monkey’s repository of SubEthaEdit modes. It really needs some new ones. Here’s the link:
Comment from Lee Connell
Time: March 3, 2009, 7:17 am
To keep track of progress on this plugin, is this the correct place to watch? Very glad you have made this available to everyone.
Thanks!
Comment from trevor
Time: March 19, 2009, 11:21 am
very awesome, is this still maintained or updated here or should I look for a repo somewhere?
Thank you very much!
Comment from Juan Pablo Claude
Time: March 19, 2009, 3:17 pm
Thanks to everyone for the kind comments!
Soon after I posted this syntax bundle, Panic changed the API. I need to go back and change the implementation. When that is done, I will post it here again.
Comment from Tom Watson
Time: April 6, 2009, 3:16 pm
Thanks again for putting this together! It’s still been working okay with the Coda version I’m using 1.6.3, but I’d love to have an updated version. Thanks for your hard work!
Comment from David Chambers
Time: April 15, 2009, 10:08 pm
I’m a huge fan of Coda, and I’m rapidly becoming a huge fan of Django. Thanks very much for making these bundles available.
Comment from Ali
Time: August 13, 2009, 6:03 am
I’m so happy you are working on this plugin and I can’t wait getting the update.
The current version apparently is not working with Coda 1.6.4
Thank you
Comment from Watts Martin
Time: September 20, 2009, 9:45 pm
I’m a Django user and seriously thinking about buying Coda, so I’d like to gently encourage you to keep working on the development of this.
Comment from joe
Time: November 22, 2009, 11:30 am
Awesome, these are great. I would second the person that’s recommending throwing these up on the SubEthaEdit page which is, I believe, the central repository for these kinds of modes. I maintain the Specials Board .seestyle theme and have updated that to include some styling of these two modes since I’ve started using them. Thanks for the hard work.
Comment from osx rocks
Time: January 14, 2010, 6:13 am
Thx. I learn css & html and this is very usefull! I will try codo and django.
Write a comment