jEdit Community - Resources for users of the jEdit Text Editor

Edit Modes

Additional syntax highlighting modes that are not distributed with jEdit. You will need to add a mode catalog entry after placing the mode file in an appropriate mode directory. The recommended mode catalog entry can be found inside a comment at the start of each mode file. See the Installing Modes section of the jEdit user's guide for details.


Updated Tcl Edit mode (tcl.xml v2006/10/20 by Jean-François Larvoire)
Submitted by larvoire on Friday, 20 October, 2006 - 14:56
Hello,

Here's a much improved Tcl language edit mode, based on the one in the latest source.

Changes:
  • Fixed comments detection: Only # at the beginning of Tcl commands are comments!
  • Quoted strings can span multiple lines.
  • Added recursive in-string substituted command and variable analysis.
  • Added numerous missing tcl keywords and variables up to version 8.4.14.
  • Removed $ on global variable keywords, as they're often used with $::.
  • Added Expect keywords, as KEYWORD2. ("send" was already in tk as KEYWORD2)
  • Avoid colouring substituted variables that are homonyms of a keyword.
  • Highlight hexadecimal numbers too.
Known limitations:
  • Unbalanced quotes or brackets within braces, such as in regular expressions, will confuse the analysis. Add behind the confusing instruction a ;# comment with closing quotes and brackets, to trick it into thinking it's balanced again.
Known bugs (Were there before, and I failed to fix them):
  • \c escape colouring does not work for escapes embedded in words. I attemted numerous workarounds using spans and regexps, but they all seem to fail to detect anything beginning with a \. And using NO_ESCAPE="TRUE" does not help.
  • {} within quoted strings should not affect indentation.
Any hint at how to fix the last two known bugs is welcome!

Updated on 10/20/2006 - 14:56
Downloads: 1176

VB.NET Edit Mode (vb_net.xml v1.0 by Mark Hubbard)
Submitted by Brad Mace on Friday, 19 December, 2003 - 06:28
VB.NET mode by Mark Hubbard, based on VBScript mode by Andre Kaplan Also try these regular expressions for folding with the Configurable Fold Handler plug-in: fold start string: ^[^']*([cC]lass\s|[sS]ub\s|[fF]unction\s|[pP]roperty\s) fold end string: [eE]nd\s+([cC]lass|[sS]ub|[fF]unction|[pP]roperty)

Updated on 12/19/2003 - 06:29
Downloads: 1808

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

Updated on 03/04/2004 - 05:33
Downloads: 1279

VRML edit mode (vrml97.xml v1.0 by hefesto)
Submitted by Brad Mace on Friday, 19 December, 2003 - 06:29
A VRML97 mode for JEdit.

Updated on 12/19/2003 - 06:30
Downloads: 2415

XQuery syntax (XQuery.xml v0.5 by Andrey Siver)
Submitted by Siver on Thursday, 22 December, 2005 - 17:47
Simple syntax highlight for XQuery language.

Updated on 12/22/2005 - 17:47
Downloads: 1224

Yacc syntax highlighting (yacc.xml v1.0)
Submitted by Brad Mace on Friday, 19 December, 2003 - 06:30
Syntax highlighting for YACC grammar files

Updated on 12/19/2003 - 06:31
Downloads: 1603

YAML Edit Mode (yaml.xml v1.0 by Carsten Eckelmann)
Submitted by careck42 on Monday, 29 December, 2003 - 01:07
This is my first attempt of an edit mode for YAML (YAML ain't markup language). More information on YAML can be found at http://www.yaml.org.

Updated on 12/29/2003 - 01:07
Downloads: 1490

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 (!).

Updated on 12/02/2004 - 00:42
Downloads: 2764

There are 480 downloads in our database
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   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
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