PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/42docs/users-guide/mode-rule-mark-following.html

#
HTML | 20 lines | 20 code | 0 blank | 0 comment | 0 complexity | f0a2bb432e84e60d26691a3bd5c9f041 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>The MARK_FOLLOWING Tag</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="jEdit 4.2 User's Guide"><link rel="up" href="writing-modes.html" title="Chapter 10. Mode Definition Syntax"><link rel="previous" href="mode-rule-mark-prev.html" title="The MARK_PREVIOUS Tag"><link rel="next" href="mode-rule-seq.html" title="The SEQ Tag"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The MARK_FOLLOWING Tag</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mode-rule-mark-prev.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Mode Definition Syntax</th><td width="20%" align="right"> <a accesskey="n" href="mode-rule-seq.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mode-rule-mark-following"></a>The MARK_FOLLOWING Tag</h2></div></div><div></div></div><p>
  2. The <tt class="literal">MARK_FOLLOWING</tt> rule, which must be placed inside a
  3. <tt class="literal">RULES</tt> tag, highlights from the start of the
  4. match to the next syntax token. The text to match
  5. is specified between opening and closing <tt class="literal">MARK_FOLLOWING</tt>
  6. tags. The following attributes are supported:
  7. </p><div class="itemizedlist"><ul type="disc"><li><p><tt class="literal">TYPE</tt> - The token type to highlight the
  8. text with. See <a href="mode-syntax-tokens.html" title="Token Types">the section called &#8220;Token Types&#8221;</a> for a list of token
  9. types.</p></li><li><p><tt class="literal">AT_LINE_START</tt> - If set to
  10. <tt class="literal">TRUE</tt>, the sequence will only be highlighted if it occurs
  11. at the beginning of a line.</p></li><li><p><tt class="literal">AT_WHITESPACE_END</tt> - If set to
  12. <tt class="literal">TRUE</tt>, the sequence will only be highlighted if it is
  13. the first non-whitespace text in the line.</p></li><li><p><tt class="literal">AT_WORD_START</tt> - If set to
  14. <tt class="literal">TRUE</tt>, the sequence will only be highlighted if
  15. it occurs at the beginning of a word.</p></li><li><p><tt class="literal">EXCLUDE_MATCH</tt> - If set to
  16. <tt class="literal">TRUE</tt>, the match will not be highlighted,
  17. only the text after it will.</p></li></ul></div><p>
  18. Here is a rule that highlights variables in Unix shell scripts
  19. (&#8220;<span class="quote">$CLASSPATH</span>&#8221;, &#8220;<span class="quote">$IFS</span>&#8221;, etc):
  20. </p><table border="0" bgcolor="#E0E0E0"><tr><td><pre class="programlisting">&lt;MARK_FOLLOWING TYPE="KEYWORD2"&gt;$&lt;/MARK_FOLLOWING&gt;</pre></td></tr></table></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mode-rule-mark-prev.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="writing-modes.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="mode-rule-seq.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The MARK_PREVIOUS Tag </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> The SEQ Tag</td></tr></table></div></body></html>