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

0
4 comments
Avatar
Permanently deleted user

IIRC, you should use

0

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

Peter

0
Avatar
Permanently deleted user

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

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.