PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/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
  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. <chapter id="macro-basics"><title>Introducing BeanShell</title>
  10. <para>
  11. Here is how BeanShell's author, Pat Niemeyer, describes his creation:
  12. </para>
  13. <blockquote>
  14. <para>
  15. <quote>BeanShell is a small, free, embeddable, Java source
  16. interpreter with object scripting language features, written in
  17. Java. BeanShell executes standard Java statements and
  18. expressions, in addition to obvious scripting commands and
  19. syntax. BeanShell supports scripted objects as simple method
  20. closures like those in Perl and JavaScript.</quote>
  21. </para>
  22. </blockquote>
  23. <para>
  24. You do not have to know anything about Java to begin writing your own
  25. jEdit macros. But if you know how to program in Java, you already know
  26. how to write BeanShell scripts. The major strength of using
  27. BeanShell with a program written in Java is that it allows the user to
  28. customize the program's behavior using the same interfaces
  29. designed and used by the program itself. BeanShell can
  30. turn a well-designed application into a powerful, extensible toolkit.
  31. </para>
  32. <para>
  33. This guide focuses on using BeanShell in macros. If you are interested
  34. in learning more about BeanShell generally, consult the <ulink
  35. url="http://www.beanshell.org">BeanShell web site</ulink>. Information
  36. on how to run and organize macros, whether included with the jEdit
  37. installation or written by you, can be found in
  38. <xref linkend="using-macros"/>.
  39. </para>
  40. </chapter>