Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  TextMate for erlyweb et files

Guest
Posted: Thu Dec 20, 2007 11:12 am Reply with quote
Guest
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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
rsaccon
Posted: Thu Dec 20, 2007 1:26 pm Reply with quote
User Joined: 09 Aug 2006 Posts: 144
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_grammars

regards
Roberto

On Dec 20, 9:11 am, Jon Hancock <redstarl...@gmail.com> 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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Fri Dec 21, 2007 4:15 am Reply with quote
Guest
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 Wink.

If anyone has improvement to this, please post.

thanks, Jon



On Dec 20, 9:25 pm, Roberto Saccon <rsac...@gmail.com> 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 <redstarl...@gmail.com> 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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum