Put the code in a cell or leave it in the body, makes no difference to
Code in the body of the text is easier to maintain in docs.
Indent the line continuation.
Do not put any character at the end of a broken line.
Coders know that lines break.
Non-code characters intended to visually indicate a line break will bite
If the first word of a following line tries to jump back up to the end
of the previous line, force it to the following line with invisible
space(s) as needed.
The point of the code sample is to present it in a manner that's
acceptable to coders.
[mailto:framers-bounces at lists.frameusers.com] On Behalf Of Art Campbell
Sent: Thursday, November 29, 2007 1:13 PM
To: Neil Tubb
Cc: framers at frameusers.com
Subject: Re: Indicating Code Sample Line Breaks
I put each line of code into a single cell -- if you're doing that,
just set an indent for the subsequent lines. I've never put anything
at the end of the line and never had anyone fail to understand that a
hanging first line and indented following lines indicated that the
Manually adding a special character would be possible, but a real PITA
If you had to do it, you could create a second column to the right of
the code sample just wide enough for a character or two and create a
paragraph tag that would generate the symbol. And then only use that
character format in the cell for lines that wrap. That would still
allow you to cut and paste freely in the "code" column.
On Nov 29, 2007 1:59 PM, Neil Tubb <neil.tubb at solacesystems.com> wrote:
> Hi all,
> Please help me...I'm working on an SDK programming guide, and I have
> some sample code lines that are just too long. I am told I need to
> indicate that the lines are breaking with some kind of an carriage
> return arrow icon, and then indent the following line.
> Does anyone have any good ideas on how to do this in FrameMaker? I'm
> using Frame 7.1 on Windows XP. My code samples are done in a single
> table cell.
art.campbell at gmail.com
"... In my opinion, there's nothing in this world beats a '52 Vincent
and a redheaded girl." -- Richard Thompson
No disclaimers apply.
You are currently subscribed to Framers as kmcdaniel at pavtech.com.
Send list messages to framers at lists.frameusers.com.
To unsubscribe send a blank email to
framers-unsubscribe at lists.frameusers.com
Send administrative questions to listadmin at frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.