jEdit Community - Resources for users of the jEdit Text Editor
Creating edit modes
Submitted by OBI_Ron on Monday, 19 November, 2007 - 21:56
Hello Everyone, I would like to create an edit mode for a specific file type / extension = igs. However, the file type has the following as the first line: Because of this (I think), the syntax highlighting is taken from xml.xml, and ignores my igs.xml. Is there a way to force the file to use the igs.xml? Or will I have to modify the xml.xml? If I do need to modify the xml.xml, is it best to use a new ruleset vs modifying an existing one? Thanks in advance!
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Reading
by OBI_Ron on Tue, 20/11/2007 - 01:02
Thanks for the help, and sorry for the double post.
Read the Help Docs.
by elberry on Mon, 19/11/2007 - 22:53
You need to read the help docs in regards to writing edit modes. Especially Chapter 11, "Installing Edit Modes".
You need to edit your catalog file, which should be in the .jedit directory under your home directory.

Mine is located in:
~/.jedit/modes

Essentially, you just need to add an entry there and have it point to your igs.xml file.
[code]
<?xml version="1.0"?>
<!DOCTYPE MODES SYSTEM "catalog.dtd">
<MODES>

    <MODE NAME="igs" FILE="igs.xml" FILE_NAME_GLOB="*.{igs}"/>
    
</MODES>

[/code]

You should put your igs.xml in the same directory.

Learn from the past. Live in the present. Plan for the future.
User login
Browse archives
« September 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   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299