Skip to Content
0
Former Member
Dec 26, 2007 at 10:52 AM

Can't add formatted code to forum message

59 Views

The new message editor is nice, except for the fact that it destroys formatting of code blocks! In the old editor, we could use the

 .... 

tags to maintain formatting, but the new editor has no such tag. Also, the HTML tag <pre> ... </pre> is not supported.

Since a lot of messages are code-related, and users include blocks of code in questions or replies, it would be a good idea to return the notion of pre-formatted blocks of text, so that the following example is averted:

<u>Example</u>

<b>

function myFunction(int x)

{

if(x < 2)

{

println("x < 2");

}

else if(x > 2 && x < 4)

{

println("x is between 2 and 4");

}

else

{

println("x > 4");

}

}

</b>

Horrible!

Walter