<font class="Apple-style-span" face="arial, helvetica, sans-serif">Could you try it yourself please? Does it work for you?</font><br>
<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 11:59, nuke <span dir="ltr"><<a href="mailto:sila.razuma@gmail.com">sila.razuma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<font 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 face="arial, helvetica, sans-serif"><br></font></div><div><div class="im"><font face="arial, helvetica, sans-serif"><div>{<span style="white-space:pre">    </span>scopeName = 'source.serpent';</div>
<div><span style="white-space:pre">       </span>fileTypes = ( 'serpent' );</div><div><span style="white-space:pre">    </span>patterns = (</div><div><span style="white-space:pre">          </span>{<span style="white-space:pre">    </span>begin = '<\?';</div>


<div><span style="white-space:pre">                       </span>end = '\?>';</div><div><span style="white-space:pre">                       </span>patterns = ( { include = 'source.php'; } );</div>
<div><span style="white-space:pre">               </span>},</div><div><span style="white-space:pre">    </span>);</div><div>}</div></font>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Mon, Jun 7, 2010 at 11:04, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">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>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>
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></div></div>
</blockquote></div><br>