|
|
| Author |
Message |
|
| Guest |
Posted: Thu Dec 20, 2007 11:12 am |
|
|
|
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 |
|
|
| Back to top |
|
| rsaccon |
Posted: Thu Dec 20, 2007 1:26 pm |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Fri Dec 21, 2007 4:15 am |
|
|
|
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 .
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|