[TxMt] Re: Need help with custom language highlightning

Allan Odgaard mailinglist at textmate.org
Mon Jun 7 09:04:56 UTC 2010


On 4 Jun 2010, at 15:49, nuke wrote:

> Could you help me to make a custom language colorization!
> [...] What do I need to do?

In addition to creating a new language grammar you also need to select  
to use it for your file (in your case it should be automatically  
chosen for files with ‘serpent’ extension). This is done by using  
the status bar language selector.

Your grammar doesn’t do anything though (other than include PHP), so  
selecting it wouldn’t be different to selecting PHP directly, except  
the root scope will be different (which you can check with ⌃⇧P).

Perhaps though your issue is more with embedding of things in HTML.  
You should probably have a look at this page http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight




More information about the textmate mailing list