Jesper Rønn-Jensen
2007-Oct-10 13:35 UTC
How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
I''m using E-texteditor that reads and understand the macromates bundles just fine. But how do you set up your editor so that it correctly can identify .html.erb as "HTML (Rails)" in Textmate? It seems as the bundle is not yet updated. http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle/Syntaxes/HTML%20(Rails).plist What do you do to syntax highlight correctly? Related posting at the E-texteditor forum/bundles thread http://www.e-texteditor.com/forum/viewtopic.php?t=1711 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Oct-10 13:53 UTC
Re: How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
On 10 Oct 2007, at 14:35, Jesper Rønn-Jensen wrote:> > I''m using E-texteditor that reads and understand the macromates > bundles just fine. > > But how do you set up your editor so that it correctly can > identify .html.erb as "HTML (Rails)" in Textmate? > > It seems as the bundle is not yet updated. > http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on% > 20Rails.tmbundle/Syntaxes/HTML%20(Rails).plist > > What do you do to syntax highlight correctly? >In textmate, open the bundle editor> Edit Languages pick Rails: HTML(rails) from the left hand thing Then change fileTypes = ( ''rhtml'' ); to fileTypes = ( ''rhtml'', ''html.erb'' ); Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jesper Rønn-Jensen
2007-Oct-10 19:39 UTC
Re: How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
Frederick Cheung wrote:> In textmate, open the bundle editor> Edit Languages > pick Rails: HTML(rails) from the left hand thing > Then change fileTypes = ( ''rhtml'' ); > to > fileTypes = ( ''rhtml'', ''html.erb'' );Thanks Fred. E-texteditor lacks the user interface that allows me to edit filetypes in the bundle editor. Could you please post details from the file "HTML (Rails).plist" I want to see if it''s a little E-texteditor bug or if I just get it wrong. (my workaround currently is to interpret all .erb files as HTML(Rails), which is not particular smart for other formats than HTML) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Scott
2007-Oct-17 13:36 UTC
Re: How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
Did you ever find a real solution for this? E won''t recognize html.erb if you edit the plist file. On Oct 10, 3:39 pm, Jesper Rønn-Jensen <jespe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Frederick Cheung wrote: > > In textmate, open the bundle editor> Edit Languages > > pick Rails: HTML(rails) from the left hand thing > > Then change fileTypes = ( ''rhtml'' ); > > to > > fileTypes = ( ''rhtml'', ''html.erb'' ); > > Thanks Fred. > E-texteditor lacks the user interface that allows me to edit filetypes > in the bundle editor. Could you please post details from the file > "HTML (Rails).plist" > > I want to see if it''s a little E-texteditor bug or if I just get it > wrong. > > (my workaround currently is to interpret all .erb files as > HTML(Rails), which is not particular smart for other formats than HTML)--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Oct-17 14:42 UTC
Re: How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
On 10 Oct 2007, at 20:39, Jesper Rønn-Jensen wrote:> > Frederick Cheung wrote: >> In textmate, open the bundle editor> Edit Languages >> pick Rails: HTML(rails) from the left hand thing >> Then change fileTypes = ( ''rhtml'' ); >> to >> fileTypes = ( ''rhtml'', ''html.erb'' ); > > Thanks Fred. > E-texteditor lacks the user interface that allows me to edit filetypes > in the bundle editor. Could you please post details from the file > "HTML (Rails).plist" > > I want to see if it''s a little E-texteditor bug or if I just get it > wrong. > > (my workaround currently is to interpret all .erb files as > HTML(Rails), which is not particular smart for other formats than > HTML) >Oops, skipped over your mail until now. the relevant plist reads { scopeName = ''text.html.ruby''; fileTypes = ( ''rhtml'', ''html.erb'' ); ... } Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jesper Rønn-Jensen
2007-Oct-19 18:58 UTC
Re: How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
Scott: I did solve it (with the workaround to view all .erb files as HTML/ Rails) In \Application Data\e\Bundles\Rails.tmbundle\Syntaxes\HTML (Rails).plist: <key>fileTypes</key> <array> <string>rhtml</string> <string>erb</string> <!-- this is the line I added --> </array> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---