{The `hook' Mode

Introduction
I used the hook mode distributed with jedit to test the mode­handling code in the editor as I wrote it.  I include it in the distribution because it has code (mostly commented out) that exercises a lot of the customisability supported by jedit's mode mechanism, so it may be useful as an example, or as a starting point for writing your own modes.  The file that creates it is normally installed in /usr/local/lib/jstools/jeditmodes/jhook-mode.tcl.
} {{{jdoc:xref:link {4.38 4.43}} {jdoc:anchor:anchorname {3.0 4.0}} {richtext:font:roman {2.0 3.0 4.0 4.11 4.15 4.38 4.43 4.238 4.243 4.399 4.447 5.0}} {richtext:font:bold {4.399 4.447}} {richtext:font:typewriter {4.11 4.15 4.38 4.43 4.238 4.243}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jedit.jdoc {4.38 4.43}}} {{abbrevstart 4.363} {matchend 5.0} {abbrevend 4.373} {insert 1.0} {anchor 5.0} {matchstart 5.0} {current 1.0}}}