Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to syntax highlight Rails 2.0 .html.erb files in Textmate/E-texteditor
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jesper Rønn-Jensen  
View profile  
 More options Oct 10 2007, 9:35 am
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Wed, 10 Oct 2007 13:35:52 -0000
Local: Wed, Oct 10 2007 9:35 am
Subject: 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.tmb...

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederick Cheung  
View profile  
 More options Oct 10 2007, 9:53 am
From: Frederick Cheung <frederick.che...@gmail.com>
Date: Wed, 10 Oct 2007 14:53:50 +0100
Local: Wed, Oct 10 2007 9:53 am
Subject: Re: [Rails] 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesper Rønn-Jensen  
View profile  
 More options Oct 10 2007, 3:39 pm
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Wed, 10 Oct 2007 12:39:55 -0700
Local: Wed, Oct 10 2007 3:39 pm
Subject: 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott  
View profile  
 More options Oct 17 2007, 9:36 am
From: Scott <scott.tesori...@gmail.com>
Date: Wed, 17 Oct 2007 13:36:19 -0000
Local: Wed, Oct 17 2007 9:36 am
Subject: 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...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederick Cheung  
View profile  
 More options Oct 17 2007, 10:42 am
From: Frederick Cheung <frederick.che...@gmail.com>
Date: Wed, 17 Oct 2007 15:42:22 +0100
Local: Wed, Oct 17 2007 10:42 am
Subject: Re: [Rails] 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:

Oops, skipped over your mail until now. the relevant plist reads

{       scopeName = 'text.html.ruby';
        fileTypes = ( 'rhtml', 'html.erb' );
        ...

}

Fred

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesper Rønn-Jensen  
View profile  
 More options Oct 19 2007, 2:58 pm
From: Jesper Rønn-Jensen <jespe...@gmail.com>
Date: Fri, 19 Oct 2007 11:58:52 -0700
Local: Fri, Oct 19 2007 2:58 pm
Subject: 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »