/www/tags/NOV_07_2009/htdocs/42docs/users-guide/macros-misc.html
HTML | 74 lines | 74 code | 0 blank | 0 comment | 0 complexity | 98d62342ed481806b0f1a9b6dae3ff83 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>Miscellaneous 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-java.html" title="Java Code Macros"><link rel="next" href="macros-properties.html" title="Property Macros"></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">Miscellaneous Macros</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="macros-java.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="macros-properties.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-misc"></a>Miscellaneous Macros</h2></div></div><div></div></div><p>
- While these macros do not fit easily into the other categories, they all provide
- interesting and useful functions.
- </p><div class="itemizedlist"><ul type="disc"><li><p><tt class="filename">Display_Abbreviations.bsh</tt></p><p>
- Displays the abbreviations registered for each of jEdit's
- editing modes.
- </p><p>
- The macro provides a read-only view of the abbreviations
- contained in the “<span class="quote">Abbreviations</span>” option pane. Pressing
- a letter key will scroll the table to the first entry beginning with
- that letter. A further option is provided to write a selected mode's
- abbreviations or all abbreviations in a text buffer for printing as a
- reference. Notes in the source code listing point out some display options
- that are configured by modifying global variables.
- </p></li><li><p><tt class="filename">Display_Actions.bsh</tt></p><p>
- Displays a list of all the actions known to jEdit categorised by
- their action set.
- </p><p>
- This macro can be a useful reference if you want to use the jEdit 4.2 action bar.
- </p></li><li><p><tt class="filename">Display_Character_Code.bsh</tt></p><p>
- Display int and hex values for the character at the caret,
- in the status bar.
- </p></li><li><p><tt class="filename">Display_Shortcuts.bsh</tt></p><p>
- Displays a sorted list of the keyboard shortcuts currently in effect.
- </p><p>
- The macro provides a combined read-only view of command, macro
- and plugin shortcuts. Pressing a letter key will
- scroll the table to the first entry beginning with that letter.
- A further option is provided to write the shortcut assignments in a
- text buffer for printing as a reference. Notes in the source code
- listing point out some display options that are configured by
- modifying global variables.
- </p></li><li><p><tt class="filename">Evaluate_Buffer_in_BeanShell.bsh</tt></p><p>
- Evaluates contents of current buffer as a BeanShell script,
- and opens a new
- buffer to receive any text output.
- </p><p>
- This is a quick way to test a macro script even before its text
- is saved to a file. Opening a new buffer for output is a precaution
- to prevent the macro from inadvertently erasing or overwriting
- itself. BeanShell scripts that operate on the contents of the
- current buffer will not work meaningfully when tested using this
- macro.
- </p></li><li><p><tt class="filename">Hex_Convert.bsh</tt></p><p>
- Converts byte characters to their hex equivalent, and vice versa.
- </p></li><li><p><tt class="filename">HyperSearch_Results_to_Buffer.bsh</tt></p><p>
- Writes HyperSeach results to a new buffer.
- </p></li><li><p><tt class="filename">Include_Guard.bsh</tt></p><p>
- Intended for C/C++ header files, this macro inserts a preprocessor
- directive in the current buffer to ensure that the header is
- included only once per compilation unit.
- </p><p>
- To use the macro, first place the caret at the beginning of the
- header file before any uncommented text. The macro will return to
- this position upon completion. The defined term that triggers the
- “<span class="quote">include guard</span>” is taken from the buffer's name.
- </p></li><li><p><tt class="filename">Make_Bug_Report.bsh</tt></p><p>
- Creates a new buffer with installation and error information
- extracted from the activity log.
- </p><p>
- The macro extracts initial messages written to the activity log
- describing the user's operating system, JDK, jEdit version and
- installed plugins. It then appends the last set of error messages
- written to the activity log. The new text buffer can be saved and
- attached to an email message or a bug report made on SourceForge.
- </p></li><li><p><tt class="filename">Run_Script.bsh</tt></p><p>
- Runs script using interpreter based upon buffer's editing mode
- (by default, determined using file extension). You must have the
- appropriate interpreter (such as Perl, Python, or Windows Script Host)
- installed on your system.
- </p></li><li><p><tt class="filename">Show_Threads.bsh</tt></p><p>
- Displays in a tree format all running Java threads of the current
- Java Virtual Machine.
- </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-java.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="macros-properties.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Java Code Macros </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Property Macros</td></tr></table></div></body></html>