PageRenderTime 55ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1<!-- jEdit 4.0 Macro Guide, (C) 2001, 2002 John Gellene          -->
 2<!--                                                             -->
 3<!-- jEdit buffer-local properties:                              -->
 4<!-- :indentSize=1:noTabs=yes:maxLineLen=72:tabSize=2:           -->
 5<!--                                                             -->
 6<!-- This file cover the introductory section of the macro guide -->
 7<!-- $Id: macro-basics.xml 4097 2002-03-17 10:21:56Z spestov $
 8 -->
 9
10<chapter id="macro-basics"><title>Introducing BeanShell</title>
11
12  <para>
13   Here is how BeanShell's author, Pat Niemeyer, describes his creation:
14  </para>
15
16  <blockquote>
17   <para>
18    <quote>BeanShell is a small, free, embeddable, Java source
19    interpreter with object scripting language features, written in
20    Java. BeanShell executes standard Java statements and
21    expressions, in addition to obvious scripting commands and
22    syntax. BeanShell supports scripted objects as simple method
23    closures like those in Perl and JavaScript.</quote>
24   </para>
25  </blockquote>
26
27  <para>
28   You do not have to know anything about Java to begin writing your own
29   jEdit macros. But if you know how to program in Java, you already know
30   how to write BeanShell scripts.  The major strength of using
31   BeanShell with a program written in Java is that it allows the user to
32   customize the program's behavior using the same interfaces
33   designed and used by the program itself. BeanShell can
34   turn a well-designed application into a powerful, extensible toolkit.
35  </para>
36
37  <para>
38   This guide focuses on using BeanShell in macros. If you are interested
39   in learning more about BeanShell generally, consult the <ulink
40   url="http://www.beanshell.org">BeanShell web site</ulink>. Information
41   on how to run and organize macros, whether included with the jEdit
42   installation or written by you, can be found in
43   <xref linkend="using-macros"/>.
44  </para>
45
46</chapter>