Reply to thread

What I mean is that code tags trim whitespace like regular content. In other words indenting, etc. is not preserved. :)


For example:

[code]

if($codetags->preserveWhitespace()) {

//this should be indented

$erik->makeHappy();

} else {

// also indented

fix();

}

[/code]


PHP tags are the same:

[php]

<?php

if($codetags->preserveWhitespace()) {

//this should be indented

$erik->makeHappy();

} else {

// also indented

fix();

}

?>

[/php]


On a related note, if you hit the tab key within the editor (either the quick reply or the full editing page), it tabs out to the next form field instead of creating a tab character. (edit: nevermind, as designed :))


These two combined make posting and formatting code a nightmare at the moment. Long pieces of code are almost impossible to read without proper whitespace and indenting. :)


Back
Top Bottom