I'm enjoying learning how to tweak the language bundles, and there's a lot of good information in the help files and the wiki. There's one small thing so far that I haven't found a good way to do. I'm playing with adding support for heredoc-style embedded HTML in PHP document and have added this to the PHP language syntax definition (version 2.0):
{ name = 'meta.scope.heredoc'; begin = '<<<HTML'; end = '^HTML;'; patterns = ( { include = 'text.html.basic'; } ); }
(Hopefully I haven't made too many embarassing mistakes in those four lines. It seems to work, anyway.)
What I'd like to do is also specially color the heredoc tags, just to make the beginning and end of each block stand out. Is there a "right way" to do that?
A second, minor point about documentation: the wiki says "With regard to syntaxes...there is a help page on how to define these." But the term "syntaxes" isn't actually used in the TextMate help. That didn't stop me from finding the help pages, but this seems like something that would be good to clean up in the wiki for consistency's sake. What's the canonical name for these language syntax definitions?
thanks,
pb
-- paul bissex 69.55.225.29 01061-0847 72°39'71"W 42°19'42"N