jEdit Community - Resources for users of the jEdit Text Editor
Safely override php.xml
Submitted by kendowns on Wednesday, 23 July, 2008 - 13:35
Hello!

I have added a custom rule to /usr/jedit/modes/php.xml so that certain heredoc blocks are delegated to Javascript syntax coloring. I would like to distribute this change to users of my framework, but it does not seem like the Right Thing to directly modify this file.

Is there a defined way to add things to these default syntax coloring files without directly modifying the original file? Can I put a copy of it in my ./jedit/modes file? Is there some other mechanism for doing this?

TIA...
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
mode file
by Robert Schwenn on Wed, 23/07/2008 - 17:44
There are a few things that can be modified via the "Global Options -> Editing" dialog (this results in property items written to the properties file).

But most changes have to be done by editing the mode file.

A mode file can be placed in the user's settings directory (~\modes) and has then to be registered in the ~\modes\catalog file. A file in the user-specific catalog should override a file with the same name in the system catalog (see User's Guide ).

Robert
 
Robert, thanks much, I think
by kendowns on Wed, 23/07/2008 - 20:15
Robert, thanks much, I think that will do it. I've made up some custom syntax files for my own YAML formats, and am familiar with the steps you mention, so I think I can take it from here.

Thanks gain.
User login
Browse archives
« August 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
31
 
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   95567
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