PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/users-guide/macros-text.html

#
HTML | 18 lines | 18 code | 0 blank | 0 comment | 0 complexity | 9c8578c71440f1a8fdcad8aea555ce9d 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>Text Macros</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit 4.3 User's Guide"><link rel="up" href="macro-index.html" title="Appendix F. Macros Included With jEdit"><link rel="prev" href="macros-properties.html" title="Property Macros"><link rel="next" href="writing-modes-part.html" title="Part II. Writing Edit Modes"></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">Text Macros</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="macros-properties.html">Prev</a> </td><th width="60%" align="center">Appendix F. Macros Included With jEdit</th><td width="20%" align="right"> <a accesskey="n" href="writing-modes-part.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="macros-text"></a>Text Macros</h2></div></div></div><p>These macros generate various forms of formatted text.</p><div class="itemizedlist"><ul type="disc"><li><p><code class="filename">Add_Prefix_and_Suffix.bsh</code></p><p>Adds user-supplied &#8220;<span class="quote">prefix</span>&#8221; and
  2. &#8220;<span class="quote">suffix</span>&#8221; text to each line in a group of selected
  3. lines.</p><p>Text is added after leading whitespace and before trailing
  4. whitespace. A dialog window receives input and
  5. &#8220;<span class="quote">remembers</span>&#8221; past entries.</p></li><li><p><code class="filename">Color_Picker.bsh</code></p><p>Displays a color picker and inserts the selected color in
  6. hexadecimal format, prefixed with a &#8220;<span class="quote">#</span>&#8221;.</p></li><li><p><code class="filename">Duplicate_Line.bsh</code></p><p>Duplicates the line on which the caret lies immediately
  7. beneath it and moves the caret to the new line.</p></li><li><p><code class="filename">Insert_Date.bsh</code></p><p>Inserts the current date and time in the current
  8. buffer.</p><p>The inserted text includes a representation of the time in
  9. the &#8220;<span class="quote">Internet Time</span>&#8221; format.</p></li><li><p><code class="filename">Insert_Tag.bsh</code></p><p>Inserts a balanced pair of HTML/SGML/XML markup tags as
  10. supplied in an input dialog. The tags will surround any selected
  11. text.</p></li><li><p><code class="filename">Next_Char.bsh</code></p><p>Finds next occurrence of character on current line.</p><p>The macro takes the next character typed after macro
  12. execution as the character being searched. That character is not
  13. displayed. If the character does not appear in the balance of
  14. the current line, no action occurs.</p><p>This macro illustrates the use of
  15. <code class="function">InputHandler.readNextChar()</code> as a means of
  16. obtaining user input. See <a class="xref" href="macro-tips-input.html#macro-tips-single-char" title="Using a Single Keypress as Input">the section called &#8220;Using a Single Keypress as Input&#8221;</a>.</p></li><li><p><code class="filename">Reverse_Lines.bsh</code></p><p>Reverses the selected lines or the entire buffer if no
  17. lines are selected. Does not support Rectangular
  18. Selections.</p></li><li><p><code class="filename">Single_Space_Buffer.bsh</code></p><p>Removes every second line, if they are all blank.</p></li></ul></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="macros-properties.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="macro-index.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="writing-modes-part.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Property Macros </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Part II. Writing Edit Modes</td></tr></table></div></body></html>