Appendix F. Macros Included With jEdit

Table of Contents

F.1. C/C++ macros
F.2. Clipboard Macros
F.3. Editing Macros
F.4. File Management Macros
F.5. User Interface Macros
F.6. Java Code Macros
F.7. Miscellaneous Macros
F.8. Property Macros
F.9. Text Macros

jEdit comes with a large number of sample macros that perform a variety of tasks. The following index provides short descriptions of each macro, in some cases accompanied by usage notes.

In addition to the macros included with jEdit, a very large collection of user-contributed macros is available in the Downloads section of the community.jedit.org web site. There are detailed descriptions for each macro as well as a search facility.

F.1. C/C++ macros

These macros are useful for C/C++ programming.

  • Include_Guard.bsh

    Inserts conditional preprocessor directives around a header file, to prevent it from being included multiple times.

    The name of the generated preprocessor macro is based on the buffer's name.

  • Toggle_Header_Source

    Toggles between the header and the implementation file. Works for .c, .cxx, and .cpp extensions.