WikiMatrix
  • Forum
  •  » TWiki
  •  » How to preserve source code formatting?

#1 2008-10-20 20:30:39

rzed
Member
Registered: 2008-10-20
Posts: 2

How to preserve source code formatting?

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?

--
rzed

Offline

 

#2 2008-10-21 08:30:43

PeterThoeny
Member
From: San Jose, CA
Registered: 2005-12-14
Posts: 264
Website

Re: How to preserve source code formatting?

Please ask support questions in the Support web [1] on TWiki.org.

The open source TWiki is listed on WikiMatrix at http://www.wikimatrix.org/show/TWiki

-- peter.thoeny.public [at] twiki [dot] net - http://www.twiki.net/ - http://twiki.org/

[1]: http://twiki.org/cgi-bin/view/Support/WebHome

Offline

 
  • Forum
  •  » TWiki
  •  » How to preserve source code formatting?

You are not logged in.


Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB