This content has been marked as final. Show 3 replies
I haven't specifically tried it with and without Smart Quotes on/off, but importing code snippets by reference works fine for me when I import and specify that the source file formatting be preserved rather than overridden by the destination file... and, of course, when it _is_ properly formatted. For example, with SQ turned off.
That being said, I usually convert a code sample into a single column table w/o lines so I can better set it off from surrounding text and (by adding a column) use autonumbering to number the lines.
We have a solution to importing code into frame data... We create a MIF file of the code and then you can cut/paste this into your document... if you send me a code example and a MIF file of your template I can set it up to process and create nice code listings in your own style.
This solution will soon be available online on our website - www.mifmasters.com (our table creation tool is already online - for CSV to MIF conversions...)
Hope this helps!
Typically, I import source code examples into FrameMaker as PDF files. I generate the PDFs directly from a source code editor, TextPad being a personal favorite. This has the advantage of not only preserving the spacing in the code, but syntax-based highlighting as well.
Martin R. Smith