<font class="Apple-style-span" face="arial, helvetica, sans-serif">I do select Serpent language explicitly (or it is detected by the file extension). The PHP insertions are not highlighted. However, if I select PHP language, they are. So I am very confused. My guess is I need to do something extra in addition to the simplest language definition I am using now:</font><div>

<font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><div>{<span class="Apple-tab-span" style="white-space:pre">     </span>scopeName = 'source.serpent';</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>fileTypes = ( 'serpent' );</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>patterns = (</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>{<span class="Apple-tab-span" style="white-space:pre">   </span>begin = '<\?';</div>

<div><span class="Apple-tab-span" style="white-space:pre">                      </span>end = '\?>';</div><div><span class="Apple-tab-span" style="white-space:pre">                      </span>patterns = ( { include = 'source.php'; } );</div>

<div><span class="Apple-tab-span" style="white-space:pre">              </span>},</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>);</div><div>}</div></font>
<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 11:04, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 4 Jun 2010, at 15:49, nuke wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Could you help me to make a custom language colorization!<br></div>
[...] What do I need to do?<br>
</blockquote>
<br>
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.<br>


<br>
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).<br>
<br>
Perhaps though your issue is more with embedding of things in HTML. You should probably have a look at this page <a href="http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight" target="_blank">http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight</a><br>


<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div>