Attention

This document was written for an old version of Plone, Plone 3, and was last updated 1204 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Plone specific syntax highlighting

by Mikko Ohtamaa last modified Feb 04, 2009 03:09 AM
How to enable syntax highlighting for Plone specific files. This covers TAL and .dtml.css files.

TAL
---

TAL is a template language used by Zope. TAL template language is built in such a way that normal HTML parsers can undestand it - all logic is in attributes and TAL specific XML blocks. Thus, you can use Eclipse HTML syntax highlighter for TAL files.

To enable HTML highlighting for TAL files:

1. Choose Windows -> Preferences -> General -> Editors -> File associations

2. Add new file type \*.pt

3. Add associated editor *Aptana HTML editor*

4. HTML syntax highlighting is used all newly opened files .pt fles

CSS
---

Plone uses DTML mark-up language in some CSS files to enable color variable substition and other dynamic features.

To enable CSS highlighting for .css.dtml (dynamically generated CSS) files:

1. Choose Windows -> Preferences -> General -> Editors -> File associations

2. Add new file type \*.dtml

3. Add associated editor *Aptana HTML editor*

4. CSS syntax highlighting is used all newly opened .css.dtml files


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.