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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r3 - 2008-10-30 - TWikiGuest
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.