[Tb] Including "source code" in notes

From: Mark Bernstein <bernstein__AT__eastgate.com>
Date: Thu Apr 08 2004 - 16:24:00 EDT

Tinderbox lets you control how line breaks are converted to HTML.
The default behavior treats them as paragraphs

        <p>......</p>

which makes a lot of sense. But, if you have a note that is LISP,
you might apply a special style:

        <p class="code">..........</p>

or, more simply, put *nothing* at the start of a paragraph and a line
break at the end:

        .........<br>

You might even use the preformatted tags:

                 <pre> (lisp goes here
                              (and all white space is preserved)) </pre>

The key to the first approaches is a set of attributes with names
like HTMLFirstParagraphStart and HTMLParagraphEnd; these are editable
for notes in the HTMLView window's PARAGRAPHS pane.

To use preformatted text markup, you might be best off turning off
HTML Markup for the note and entering the tags in the text of the
note.

-- 
--------------------------------------------------------------------
Mark Bernstein             bernstein__AT__eastgate.com    (617) 924-9044
Eastgate Systems Inc       http://www.eastgate.com/  (800) 562-1638
134 Main Street            http://www.hypertextKitchen.com/
Watertown MA 02472 USA     http://www.markbernstein.org/
Received on Thu Apr 8 16:24:00 2004

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:45:20 EST