/www/tags/NOV_07_2009/htdocs/42docs/users-guide/macros-text.html
HTML | 40 lines | 40 code | 0 blank | 0 comment | 0 complexity | a0443238e6b6c650baa026f7f66f2a9c 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
- <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.65.1"><link rel="home" href="index.html" title="jEdit 4.2 User's Guide"><link rel="up" href="macro-index.html" title="Appendix F. Macros Included With jEdit"><link rel="previous" 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></div></div><p>
- These macros generate various forms of formatted text.
- </p><div class="itemizedlist"><ul type="disc"><li><p><tt class="filename">Add_Prefix_and_Suffix.bsh</tt></p><p>
- Adds user-supplied “<span class="quote">prefix</span>” and “<span class="quote">suffix</span>”
- text to each line in a group of selected lines.
- </p><p>
- Text is added after leading whitespace and before trailing whitespace.
- A dialog window receives input and “<span class="quote">remembers</span>” past entries.
- </p></li><li><p><tt class="filename">Color_Picker.bsh</tt></p><p>
- Displays a color picker and inserts the selected color in
- hexadecimal format, prefixed with a “<span class="quote">#</span>”.
- </p></li><li><p><tt class="filename">Duplicate_Line.bsh</tt></p><p>
- Duplicates the line on which the caret lies immediately
- beneath it and moves the caret to the new line.
- </p></li><li><p><tt class="filename">Insert_Date.bsh</tt></p><p>
- Inserts the current date and time in the current buffer.
- </p><p>
- The inserted text includes a representation of the time in the
- “<span class="quote">Internet Time</span>” format.
- </p></li><li><p><tt class="filename">Insert_Tag.bsh</tt></p><p>
- Inserts a balanced pair of HTML/SGML/XML markup tags as supplied
- in an input dialog. The tags will surround any selected text.
- </p></li><li><p><tt class="filename">Next_Char.bsh</tt></p><p>
- Finds next occurrence of character on current line.
- </p><p>
- The macro takes the next character typed after macro execution
- as the character being searched. That character is not
- displayed. If the character does not appear in the balance of
- the current line, no action occurs.
- </p><p>
- This macro illustrates the use of
- <tt class="function">InputHandler.readNextChar()</tt> as a means of
- obtaining user input. See <a href="macro-tips-input.html#macro-tips-single-char" title="Using a Single Keypress as Input">the section called “Using a Single Keypress as Input”</a>.
- </p></li><li><p><tt class="filename">Reverse_Lines.bsh</tt></p><p>
- Reverses the selected lines or the entire buffer if no
- lines are selected. Does not support Rectangular
- Selections.
- </p></li><li><p><tt class="filename">Single_Space_Buffer.bsh</tt></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>