Hi,
TextMate's HTML syntax coloring seems to be based on rules while other coloring schemes (e.g. CSS, PHP) are based on keywords.
Here's an example with syntax errors:
<style type="css"> table { broder:1px solid #000; } </style> <p stlye="width:100px">foo bar</p>
So, TexMate will display the 'broder' NOT colored (because it's a syntax error) which shows me that TextMate uses keywords here. But it WILL display the 'stlye' colored (using the "Markup tag attribute" color) because it is placed where a attribute has to be... but of course, it's no valid HTML attribute.
So, my question is: Is there any way to get TextMate to use a keyword list for HTML coloring as well - so it will use the default text color for 'stlye' making me realize that it's a typo?
Kind regards, Tobias Jung
On 27. May 2007, at 20:04, Tobias Jung wrote:
[...] So, my question is: Is there any way to get TextMate to use a keyword list for HTML coloring as well - so it will use the default text color for 'stlye' making me realize that it's a typo?
If you’re willing to put some effort behind it, you can make a pretty strict HTML parser.
At 20:56 Uhr +0200 27.05.2007, Allan Odgaard wrote:
[...] So, my question is: Is there any way to get TextMate to use a keyword list for HTML coloring as well - so it will use the default text color for 'stlye' making me realize that it's a typo?
If you're willing to put some effort behind it, you can make a pretty strict HTML parser.
I don't mind the effort but I'm afraid that I currently don't have the time to dig myself into that. Thank you anyway, I'll keep that in mind and maybe someday...
Kind regards, Tobias Jung