Skip to main content

Posting code in the forums

Please note these forums are being decommissioned and use the new and improved forums at
3 replies [Last post]
Joined: 2008-04-17

I recently added a forum post with code in it, and all was well. But when I edited it, I lost the code formatting and I can't get it back. I added another block with <pre> formatting, could this be the problem?
The post is here
As far as I can see, I can enter a code block either with Format: formatted in the wysiwyg editor or [code] in the plain text editor or <pre> in the plain text editor, but I get either no formatting, or, formatted in a grey box but with a load of <BR/> and <P> tags visible, and sometimes it trashes all my line breaks and gives me a solid block of text.
The other thing is that it often looks OK in the editor but not when I save the result.
Any idea what's wrong?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-03-27

i have same issue

Joined: 2007-05-16

I'm having the same issue.

Joined: 2008-04-17

Still seems to be the same in the new