This is the old (static) wiki. Please go here instead |
ColdFusion Syntax highlighting—a work in progress
If anyone’s interested, I’ve got the beginnings of a ColdFusion bundle. I’m having one weird problem with the parser that I hope someone might help me with.
Any normal html tag that appears following a CF tag on the same line parses incorrectly.

I played with colors to figure out what the BR was getting parsed to. The open bracket, and the letters BR get parsed to nothing, while the closing bracket gets parsed as “Bad Angle Bracket or Ampersand” which is the very last pattern in the syntax file.
Any help would be appreciated. I still have quite a bit more work to do with this, but it’s a start, and I figured I’d let other folks play with it.
A request for a change to the main distribution: I’ve currently copied over the three DragCommand’s from the default HTML bundle and modified them to include the following additional extensions: cfm, cfml, dbm, dbml, cfc. If those extensions were added in HTML.tmbundle, it would avoid the need to duplicate those files.
Anyways, here’s the bundle: http://www.thebedells.org/software/TextMate/ColdFusionMX.tbz
- Zachary Bedell
I’ll add the extensions to the defaults. I have looked at the coloring issue, and I don’t see anything wrong with your file, so I think it must be a bug in TextMate. I’ll work on having it fixed for beta 4.
Update: Problem fixed. If two rules matched the exact same range (like here with the normal and the CF tag) the one which lost the match (the one listed last in the property list) would not be re-applied when scanning the rest of the line, which is why tags afterwards wouldn’t be highlighted correctly.
- AllanOdgaard
————————————————————————-
I would think that syntax highlighting for Coldfusion shouldn’t be that big of an ordeal. It is basically html with a few new tags. If anyone creates it, or needs a beta tester please contact me at kentongray [at] gmail[com]