/jEdit/tags/jedit-4-1-pre5/doc/users-guide/macro-basics.xml
XML | 46 lines | 32 code | 6 blank | 8 comment | 0 complexity | cb6a17da95d465397fed6d9941cc7167 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
- <!-- jEdit 4.0 Macro Guide, (C) 2001, 2002 John Gellene -->
- <!-- -->
- <!-- jEdit buffer-local properties: -->
- <!-- :indentSize=1:noTabs=yes:maxLineLen=72:tabSize=2: -->
- <!-- -->
- <!-- This file cover the introductory section of the macro guide -->
- <!-- $Id: macro-basics.xml 4097 2002-03-17 10:21:56Z spestov $
- -->
- <chapter id="macro-basics"><title>Introducing BeanShell</title>
- <para>
- Here is how BeanShell's author, Pat Niemeyer, describes his creation:
- </para>
- <blockquote>
- <para>
- <quote>BeanShell is a small, free, embeddable, Java source
- interpreter with object scripting language features, written in
- Java. BeanShell executes standard Java statements and
- expressions, in addition to obvious scripting commands and
- syntax. BeanShell supports scripted objects as simple method
- closures like those in Perl and JavaScript.</quote>
- </para>
- </blockquote>
- <para>
- You do not have to know anything about Java to begin writing your own
- jEdit macros. But if you know how to program in Java, you already know
- how to write BeanShell scripts. The major strength of using
- BeanShell with a program written in Java is that it allows the user to
- customize the program's behavior using the same interfaces
- designed and used by the program itself. BeanShell can
- turn a well-designed application into a powerful, extensible toolkit.
- </para>
- <para>
- This guide focuses on using BeanShell in macros. If you are interested
- in learning more about BeanShell generally, consult the <ulink
- url="http://www.beanshell.org">BeanShell web site</ulink>. Information
- on how to run and organize macros, whether included with the jEdit
- installation or written by you, can be found in
- <xref linkend="using-macros"/>.
- </para>
- </chapter>