PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  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.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>
  2. These macros generate various forms of formatted text.
  3. </p><div class="itemizedlist"><ul type="disc"><li><p><tt class="filename">Add_Prefix_and_Suffix.bsh</tt></p><p>
  4. Adds user-supplied &#8220;<span class="quote">prefix</span>&#8221; and &#8220;<span class="quote">suffix</span>&#8221;
  5. text to each line in a group of selected lines.
  6. </p><p>
  7. Text is added after leading whitespace and before trailing whitespace.
  8. A dialog window receives input and &#8220;<span class="quote">remembers</span>&#8221; past entries.
  9. </p></li><li><p><tt class="filename">Color_Picker.bsh</tt></p><p>
  10. Displays a color picker and inserts the selected color in
  11. hexadecimal format, prefixed with a &#8220;<span class="quote">#</span>&#8221;.
  12. </p></li><li><p><tt class="filename">Duplicate_Line.bsh</tt></p><p>
  13. Duplicates the line on which the caret lies immediately
  14. beneath it and moves the caret to the new line.
  15. </p></li><li><p><tt class="filename">Insert_Date.bsh</tt></p><p>
  16. Inserts the current date and time in the current buffer.
  17. </p><p>
  18. The inserted text includes a representation of the time in the
  19. &#8220;<span class="quote">Internet Time</span>&#8221; format.
  20. </p></li><li><p><tt class="filename">Insert_Tag.bsh</tt></p><p>
  21. Inserts a balanced pair of HTML/SGML/XML markup tags as supplied
  22. in an input dialog. The tags will surround any selected text.
  23. </p></li><li><p><tt class="filename">Next_Char.bsh</tt></p><p>
  24. Finds next occurrence of character on current line.
  25. </p><p>
  26. The macro takes the next character typed after macro execution
  27. as the character being searched. That character is not
  28. displayed. If the character does not appear in the balance of
  29. the current line, no action occurs.
  30. </p><p>
  31. This macro illustrates the use of
  32. <tt class="function">InputHandler.readNextChar()</tt> as a means of
  33. obtaining user input. See <a 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>.
  34. </p></li><li><p><tt class="filename">Reverse_Lines.bsh</tt></p><p>
  35. Reverses the selected lines or the entire buffer if no
  36. lines are selected. Does not support Rectangular
  37. Selections.
  38. </p></li><li><p><tt class="filename">Single_Space_Buffer.bsh</tt></p><p>
  39. Removes every second line, if they are all blank.
  40. </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>