thanks for the reply.  I dusted off my minimal textmate and regex
skills this morning and wrote an erlyweb template language def.
Here it is:

{       scopeName = 'text.html.erlangTemplate';
        fileTypes = ( 'et' );
        patterns = (
                {       name = 'comment.block.erlangTempate';
                        begin = '^<%!';
                        end = '([>]*)%>';
                },
                {       name = 'source.erlang.erlangTempate';
                        begin = '^<%(~|@|/?)?';
                        end = '([>]*)%>';
                        patterns = ( { include = 'source.erlang'; } );
                },
                {       include = 'text.html.basic'; },
        );
}

since this isn't a full erlyweb thing and I didn't want to disturb the
Erlang bundle, I create a new bundle called "Erlang Template" and
added a single language definition called "Erlang Template" which
contains the above.

I didn't follow naming conventions such as calling this thing
"text.html.embedded.erlang" or naming the bundle "Erlang (HTML)" as I
already had a yaws bundle which thinks it has the market cornered on
embedding erlang in html ;).

If anyone has improvement to this, please post.

thanks, Jon



On Dec 20, 9:25 pm, Roberto Saccon <[EMAIL PROTECTED]> wrote:
> Not a solution, just a suggestion where to start, in case you are not
> familiar with TextMate internals:
>
> Define new grammar as subscope of HTML for the filetype 
> "*.et"http://macromates.com/textmate/manual/language_grammars#language_gram...
>
> regards
> Roberto
>
> On Dec 20, 9:11 am, Jon Hancock <[EMAIL PROTECTED]> wrote:
>
> > I have installed the TextMate erlang bundle.  Missing now is
> > colorizing erlyweb's "et" files.
> > Does anyone have a solution for this?
> > thanks, Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to