Erik
Well-known member
What I mean is that code tags trim whitespace like regular content. In other words indenting, etc. is not preserved.
For example:
PHP tags are the same:
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.
For example:
Code:
if($codetags->preserveWhitespace()) {
//this should be indented
$erik->makeHappy();
} else {
// also indented
fix();
}
PHP tags are the same:
PHP:
<?php
if($codetags->preserveWhitespace()) {
//this should be indented
$erik->makeHappy();
} else {
// also indented
fix();
}
?>
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.