I also use the table approach (although I use a monospace font at 10 pt
for legibility) for formatting program code examples.
The advantage of a table is that if you have long code lines, they wrap
within the table cell, and will be kept together on the same page as FM
won't split a cell over a
Carol,
As Lester points out, keeping a line intact, even if it wraps, and
improving legibility are the primary reasons.
But using tables also gives you a lot more formatting options.
For instance, you can make the background shading any color and make
the text contrasting, which lets you mimic a
Hi Carol,
I do it the way you do it. If there is a better way, I'd also like to know
about it, because I sure can't seem to come up with one.
Chuck Beck
Sr. Technical Writer | Infor | Office: 614.523.7302 | [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
like a good tool!
- Carol Date: Thu, 15 Nov 2007 07:33:09 -0500 From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED] Subject: Re: Formatting XML and other computer code CC:
[EMAIL PROTECTED] I copy it from the screen into FM as raw text with Paste
Special Text with a para at the end of each line
Hi Carol,
Here is what I do, although I don't claim it is the best.
- I have defined a paragraph style that is single spaced and which uses a
mono-space font. It has NO tab stops.
- When I have a code sample, I first paste it into a text editor called
UltraEdit-32, change all the tabs to