Next: , Previous: Horizontal Rules and Anchors, Up: Markup Rules

8.13 Evaluating Emacs Lisp code in documents for extensibility

Arbitrary kinds of markup can be achieved using the <lisp> tag. With the <lisp> tag, you may generate whatever output text you wish. The inserted output will get marked up if the <lisp> tag appears within the main text of the document.

     <lisp>(concat "This form gets " "inserted")</lisp>

Note that you should not use the insert command within a set of <lisp> tags, since the return value from the <lisp> tags will be automatically inserted into the document.

It is also possible to treat the output as if it were surrounded by the <example>, <src>, or <verse> tags, by specifying “example”, “src”, or “verse” as the markup attribute of the <lisp> tag.

     <lisp markup="example">
     (concat "Insert" " me")

Other languages also have tags that cause source code to be evaluated. See Tag Summary, for details.