Question
In our 4.2 installation, I haven't found a good way to preserve the formatting in computer language source code. It is a hindrance to posting code snippets and the like. How do other people handle the problem.
I've tried various markups that should (I'd think) keep the format as is: Verbatim, Protect Forever, Literal ... of them all, only Protect Forever seems to keep the formatting I want to see, and then only in the editor. At display time, the code just runs together like any other normal HTML. What am I missing? Or should I just be maintaining links to external documents?
Environment
--
TWikiGuest - 29 Oct 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I usually use
<verbatim>. What's your problem with this approach?
You could also try
SyntaxHighlightingPlugin (haven't tried it myself though).
--
MartinKaufmann - 29 Oct 2008
It may be a transient phenomenon. We were having problems with our WYSIWYG editor until recently, apparently due to our configuration. Since we changed that, the editor problems seem to have abated, including this one. I'll withdraw the question for now.
--
TWikiGuest - 30 Oct 2008