[TxMt] Re: Need help with custom language highlightning
nuke
sila.razuma at gmail.com
Tue Jun 29 12:23:41 UTC 2010
Apparently, it is an issue of PHP only. The following language definition
highlights Ruby and Serpent languages in my text, but not PHP insertions! What
the hell is wrong here?
{ scopeName = 'source.phpruby.serpent';
fileTypes = ( 'serpent', 'serpent.php', 'serpent.erb' );
patterns = (
{ begin = '<\?(php|=)?';
end = '\?>';
patterns = ( { include = 'source.php'; } );
},
{ begin = '<%';
end = '%>';
patterns = ( { include = 'source.ruby'; } );
},
{ include = 'source.serpent'; },
);
}
On Tue, Jun 8, 2010 at 14:10, nuke <sila.razuma at gmail.com> wrote:
> I am sorry for the confusion. In the last question (see below) I mean, that
> I create a new language definition for highlighting some text format with
> php/ruby insertions in TextMate. I don't care now how it looks in
> BundleEditor (that was another question).
>
>
> On Tue, Jun 8, 2010 at 13:46, Tobias Jung <newsgr at tobiasjung.net> wrote:
>
>> nuke <sila.razuma at gmail.com> wrote (Mon, 7 Jun 2010 22:57:01 +0200):
>>
>> > Repeating my question:
>> > Thanks to your answers, I can now highlight PHP insertions in my custom
>> > language by copying the repository and delimiters pattern from PHP
>> language
>> > definition. However, I would like to avoid this unnecessary duplication.
>> Is
>> > it possible to simply refer the PHP definitions without copying them to
>> my
>> > language?
>>
>> Well, install the "Edit in TextMate" input manager...
>>
>> Kind regards,
>> Tobias Jung
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100629/7f8f07b7/attachment.html>
More information about the textmate
mailing list