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 on 03/21/2006 - 19:14
Downloads: 1406
Updated on 08/06/2011 - 01:17
Downloads: 1324
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.
- 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.
- \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.
Updated on 10/20/2006 - 14:56
Downloads: 1178
Updated on 12/19/2003 - 06:29
Downloads: 1810
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>
Pieter Kapsenberg
Updated on 03/04/2004 - 05:33
Downloads: 1281
Updated on 12/19/2003 - 06:30
Downloads: 2417
Updated on 12/22/2005 - 17:47
Downloads: 1226
Updated on 12/19/2003 - 06:31
Downloads: 1605
Updated on 12/29/2003 - 01:07
Downloads: 1492
Updated on 12/02/2004 - 00:42
Downloads: 2766