Source code formatting in the forum

How can I mark source code in the forum to keep the formatting? Leading white space is always trimmed.

Thanks,
Peter

4 comments
Comment actions Permalink

IIRC, you should use

0
Comment actions Permalink

Thanks, but that does not work for me - is displayed literally.

Peter

0
Comment actions Permalink

The tags you use in the message composition interface use square brackets, not curly braces. And the end marker uses a leading slash (within the brackets): /code

But I have found that sometimes they work and sometimes they're ignored. I haven't been able to see the pattern, if any, in this phenomenon.


This time they worked.


Randall Schulz

0
Comment actions Permalink

Thanks Randall - that did it. But you're right - sometimes it renders fine, sometimes not. I was not able to discover the pattern, either.

Peter

0

Please sign in to leave a comment.