Django Template Syntax Highlighting For Dreamweaver

My development environment consists of Eclipse, Dreamweaver, and Putty.

Eclipse can do syntax highlighting for Python with awesomeness but lacks in others. I use Dreamweaver for syntax highlighting of HTML, CSS, and Javascript. The auto completion is great too.

But what about syntax highlighting of the Django template language? Over time I created a simple coloring scheme with earthy tones to highlight just that.

To install the syntax highlighting you will need the following snippets of XML:

http://gist.github.com/277222

Add the scheme to CodeColoring.xml and the colors to Colors.xml then RESTART Dreamweaver

Windows XP

C:\Documents and Settings\<user>\Application Data\Adobe\Dreamweaver xx\Configuration\CodeColoring

Windows Vista/7

C:\Users\<user>\AppData\Local\Adobe\Dreamweaver xx\Configuration\CodeColoring

If you don’t like the colors you can always change them by going to “Edit | Preferences | Code Coloring” in Dreamweaver, selecting “HTML”, and clicking “Edit Coloring Scheme”

You will then find yourself with a list of styles for each scheme. Locate the Django scheme and you customize your colors

from there.

Happy Coding!

Comments

  1. For Windows 7 most of the configuration files for Adobe products are not located in AppData/Local but rather AppData/Roaming. So they should look in
    C:\Users\\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration\CodeColoring

Speak Your Mind

*


*

Fork me on GitHub