jEdit Community - Resources for users of the jEdit Text Editor
Syntax highlighting for Rails 2 files
Submitted by mamboze on Saturday, 10 May, 2008 - 04:04
Hi,
I'm editing a Rails 2.0.2 app and I find that files with the .erb extension do not show any syntax highlighting. I'm using jEdit 4.3 pre10 with Java 1.6.0_03 on a Ubuntu Gutsy box.

What should I do to get some highlighting up and running?

Thnx in advance

Roy
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
This should be a very easy fi
by elberry on Sat, 10/05/2008 - 06:33
This should be a very easy fix. Please post this in the mailing lists or make a tracker item for it on the SourceForge site.

In the mean time, you could update your catalog file to include the .erb files as ruby.

Read the documentation on Installing Edit Modes:
http://jedit.org/users-guide/installing-modes.html

Then add an entry like this:

<MODE NAME="ruby" FILE="ruby.xml"
FILE_NAME_GLOB="*.{rb,rbw,erb}"
FIRST_LINE_GLOB="#!*/*ruby*" />

Hope that helps.

Learn from the past. Live in the present. Plan for the future.
11101000
 
Thanks for the help, much app
by mamboze on Tue, 13/05/2008 - 00:30
Thanks for the help, much appreciated.

On the posting or making a tracker, I'm a noob on this stuff, could you just point the way pls, Smiling
 
Oh, Sorry, I usually include
by elberry on Wed, 14/05/2008 - 02:17
Oh, Sorry, I usually include them. Smiling

The mailing list link is over on the right:
http://sourceforge.net/mail/?group_id=588

And the Tracker is on the source forge site:
http://sourceforge.net/tracker/?group_id=588

Hope that helps.

Learn from the past. Live in the present. Plan for the future.
11101000
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300