[TxMt] Re: Need help with custom language highlightning

nuke sila.razuma at gmail.com
Mon Jun 7 17:54:09 UTC 2010


I am able to get highlighting by simply copying part of PHP lang definition
for <? ?> delimiters and whole PHP repository.

Is there a way how to refer to PHP definitions? I hope it is possible,
because having PHP + ruby + one more language will make it very messy.

By the way, is there any human-friendly way to edit language definitions?
The way how I see it now in BundleEditor makes me dizzy - small font, no
highlighting,... it feels like a prehistorical Notepad, not TextMate



On Mon, Jun 7, 2010 at 18:48, Allan Odgaard <mailinglist at textmate.org>wrote:

> On 7 Jun 2010, at 16:56, nuke wrote:
>
>  Could you try it yourself please? Does it work for you?
>>
>
> As I mentioned, your grammar doesn’t do anything other than match PHP tags
> and include the PHP grammar, but it doesn’t assign any name/scope to the
> matched tags, so they shouldn’t be highlighted.
>
> I wouldn’t exactly call your grammar the simplest example since you match
> stuff w/o assigning a name and then include another grammar. Try the example
> from the manual.
>
> And press ⌃⇧P at various places in your document, this shows how TM parsed
> the current construct, *assuming* you actually assigned names to the parts
> matched.
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100607/84d88bf0/attachment.html>


More information about the textmate mailing list