jEdit Community - Resources for users of the jEdit Text Editor
YAML mode (yaml.xml v1.1 by Alexander Klimetschek)
Submitted by klizza on Thursday, 2 December, 2004 - 00:42
An update to the 1.0 file from Carsten Eckelmann. It adds indent for yaml blocks (> |) and highlighting of quotes (" and ') and strings (!).
Mathematica Edit Mode (mathematica.xml v1.1 by Daniel Herring)
Submitted by nuntius on Tuesday, 26 October, 2004 - 21:57
A couple small improvements over the old version.
- Fixed handling of primes
- Proper highlighting of namespaces
Matlab Edit Mode (matlab.xml v1.0.4 by goebbe)
Submitted by goebbe on Wednesday, 22 September, 2004 - 13:56
Based on the Matlab Edit Mode by Chris Rose - slightly modified.
A Colourful HTML (html.zip v1.1 by Venimus)
Submitted by venimus on Tuesday, 31 August, 2004 - 11:55
Update:
  • The mode is now compatible with 4.3pre5+.
  • DOCTYPE highlighted
  • highlighted
  • Highlighting of multiline tags improved (but not perfect).
  • Highlighting of numbers improved.
  • Some other bugs fixed.
This is the most featured HTML color mode arround. It has almost all of the functionality you need when developing web content. Recognizes CSS,PHP,Javascript (delegates to the existing modes).

features (what highlights):
  1. extended tag/attributes recognition
  2. some error recognition
  3. inline CSS (requires mode - CSS v2.2 by John Paul Taylor II [updated])
  4. inline Javascript
  5. PHP
limitations (to do):
  1. no asp and vbs support

known bugs (hard to fix):
  1. The first atribute must be preceded by space/tab, new line is not enough, the rest work ok.
  2. there is small chance, but it is possible an invalid attribute to highlight as "event", it is caused of the impossibility of matching line-starts (or EOLs) in regex (due to limitations)
  3. There is a bug in jedit if background for color syntax is set. That background incorrectly applies to other tokens which doesn't have a background color set. By default the "invalid" type have a background and the other types doesn't. So the mode may look like it doesnt work. To fix that, set a background to all types or remove the background of the "invalid" type.
installation:
follow the usual steps for installing a mode definition:
  1. overwrite the original html.xml in jedit installation directory, or save it to .jedit/modes directory, and modify .jedit/modes/catalog to include
    <MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm}" />
  2. Install the fixed PHP mode (original) included in the package by overwriting or adding definition into the "catalog": <MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{php}" />
  3. You may try to use this HTML mode for php files aswell by tricking jEdit to use html.xml to highlight php. This way the html code outside <?php?> will be highlighted. To do it, instead the above definitions (1. & 2.), add the following lines in "catalog" : <MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{~}" /> <MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm,php}" /> (note the "*.{~}" - it must be an invalid extesnsion, because html.xml will be used for the *.php files aswell, but if we replace directly the original php.xml will not be available for delegation)
    I recommed you install the included fixed mode, but the original one should work just fine.
    WARNING:This trick may cause some misbehaviour (on theory), because aftar that step "php" files will become "html" for jedit and plugins that depend on it may cease to work. However I didnt notice any problems.
  4. Install the CSS mode included by overwriting or adding into "catalog":
    <MODE NAME="css" FILE="css.xml" FILE_NAME_GLOB="*.{css}" />
  5. fix your syntax colours from "general options": set a background color to all types or remove the background of the "invalid" type.
used colors:
markup - unknown tag
keyword1 - tag
keyword2 - attribute name, <tr>, </tr>
keyword4 - tag that MUST be included in other tag
keyword3 - deprecated tag
function - unknown attribute
literal1 - attribute value
literal2 - inline css
literal3 - inline javascript
comment1 - comment
comment2 - m$ conditional definition (IE)
Ruby edit mode with enhanced auto-indenting and class/instance variable highlighting (ruby.xml v0.3? by Ian McLean, Chris Morris, Christophe Grandsire & Robert McKinnon)
Submitted by robmckinnon on Sunday, 22 August, 2004 - 15:47

Another update of the Ruby mode file, which enhances v0.2 auto-indenting by adding indenting for the following: while, for, until, loop do, module, begin, unless. It also adds highlighting of class and instance variables, which was missing from the original mode file.

Use in combination with the Ruby auto indent and insert end macro to solve most of your Ruby indenting needs!

Assembly GNU x86 Edit Mode (assembly-gas-x86.xml v0.1 by Igor Lesik)
Submitted by curoles on Friday, 13 August, 2004 - 00:12

Updated on 08/13/2004 - 00:12
Downloads: 2147

nVidia "C for Graphics" edit mode. (Cg.xml v0.2 by Klaus Post)
Submitted by sh0dan on Monday, 9 August, 2004 - 13:58
nVidia C for graphics (Cg) is the basic programming language of the NVIDIA Cg Toolkit. This is a C-like language used for programming graphic cards.
This is based on the "cplusplus" template, but with only valid Cg keywords and all basic built-in functions and data types present.

v0.2 Contains a few more keywords.
ChangeLog Edit Mode (changelog.xml v1.00 by Null Flux)
Submitted by Null Flux on Sunday, 1 August, 2004 - 05:04
Significantly more detailed than the previously posted ChangeLog mode. It closely mimics how Vim colors ChangeLog files.
Assembler M68000 edit mode (assembly-M68000.xml v0.1 by Igor Lesik)
Submitted by curoles on Tuesday, 27 July, 2004 - 17:59

Updated on 07/27/2004 - 17:59
Downloads: 2497

Ruby Edit Mode with Working Auto-Indenting (ruby.xml v2.0? by Ian McLean, Chris Morris & Christophe Grandsire)
Submitted by Tsela on Friday, 2 July, 2004 - 07:41
An update of the original Ruby mode file, which adds auto-indenting which was missing from the original file. I hope it could replace the original Ruby mode file, if no one objects to it.
LaTeX mode bug fix (latex.xml v1.2 by Thomas Alspaugh)
Submitted by alspaugh on Wednesday, 9 June, 2004 - 19:30
Correctly highlights single-character accents, most notably \", whether or not the character is in {}. v1.1 required the character to be in {}.
Ocaml Edit mode (ocaml.xml v0.1 by Tobias Elze)
Submitted by tobias-elze on Thursday, 22 April, 2004 - 14:10
Edit mode for the programming language Objective Caml (http://www.ocaml.org ).
JavaCC mode syntax (javacc.xml v0.2 by Alexander Klimetschek)
Submitted by klizza on Saturday, 17 April, 2004 - 18:06
An updated version based on the javacc.xml v0.1 by Tom Wilczak. It highlightes used TOKENs better (based on a regexp), so that stuff like <MY_TOKEN> gets highlighted, but TOKEN definitions, which often include string literals, are displayed as normal. Also makes )?, )* and )+ as KEYWORD3.
Cherrypy mode (cherrypy.xml v0.4 by MV)
Submitted by mv on Saturday, 3 April, 2004 - 16:12
Fully compatible with Cherrypy syntax. See www.cherrypy.org
Advanced HTML Edit Mode (html.xml v2 by Brad Mace [revised by Sam])
Submitted by sam on Thursday, 1 April, 2004 - 16:42
The Advanced HTML Edit Mode v1 by Brad Mace contained various typos and syntactical errors. This is a fixed version with a few extra tweaks. Next thing to do is set it up so that highlighting for any quoted string in a tag is delegated to JavaScript... This mode delegates to PHP where appropriate.
BibTeX mode bug fixes (bibtex.xml v1.1 by Thomas Alspaugh)
Submitted by alspaugh on Wednesday, 31 March, 2004 - 00:33
This version fixes some problems pointed out by a user: notably, it now handles text in {} as well as "", and nested ""s and {}s. See web page for details.
LaTeX mode (latex.xml v1.1 by Thomas Alspaugh)
Submitted by alspaugh on Wednesday, 24 March, 2004 - 12:21
Highlights all environments, commands, and counters from Lamport's LaTeX2e and some of amstex and other popular packages. The five principal modes (normal, math, tabbing, tabular, and picture) are distinguished, mode transitions handled, and each mode's commands highlighted separately. Approximately 970 items are covered.
RDoc (Ruby documentation) edit mode v0.2 (rdoc.xml v0.2 by Rob McKinnon)
Submitted by robmckinnon on Saturday, 6 March, 2004 - 20:54
Edit mode for files using RDoc markup. Useful if you are writing RDoc content for RubLog, a Ruby weblog application. Perhaps these edit rules can be incorporated into the Ruby edit mode file eventually.
VHD syntax highlighting mode fix (vhdl.xml v1.1 ?? by Pieter Kapsenberg & previous authors)
Submitted by pieter3d on Thursday, 4 March, 2004 - 05:33
In VHDL, a single apostrophe ' is used in the following case: <signal name>'event where <signal name> can be any predifined signal (its like a variable). The bug is of course that the VHD highlighter thinks this is a single quote opeing a string, thus highlighting the rest of the line.

An easy rule would be to just check for the word "event" after a single quote. Here is the required update for vhd.xml - the following should replace the single quote span:
<SPAN_REGEXP HASH_CHAR="'" NO_LINE_BREAK="TRUE" TYPE="LITERAL1">
<BEGIN>(?!'event)</BEGIN>
<END>'</END>
</SPAN_REGEXP>

Screenshot of current error

Pieter Kapsenberg

TADS mode (tads.xml v0.1 by Saimon Moore)
Submitted by saimonm on Thursday, 19 February, 2004 - 19:31
A syntax highlighting mode for the TADS (Text Adventure Design System) interactive fiction authoring system (See this for more details).
User login
Browse archives
« April 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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293