Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat ES
Web server: Apache
Perl version:  
Client OS: MS Windows XP Pro, SP2
Web Browser: Firefox 3.0.3
Categories: Plugins

-- TWikiGuest - 29 Oct 2008

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-10-30 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.