Next: CSS support, Previous: Math formatting in HTML export, Up: HTML export
An alternative way to publish literal code examples in HTML is to use text
areas, where the example can even be edited before pasting it into an
application. It is triggered by a -t switch at an example or
src block. Using this switch disables any options for syntax and
label highlighting, and line numbering, which may be present. You may also
use -h and -w switches to specify the height and width of the
text area, which default to the number of lines in the example, and 80,
respectively. For example
#+BEGIN_EXAMPLE -t -w 40
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
#+END_EXAMPLE