Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
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 indentedfix();}[/code]PHP tags are the same:[php]<?phpif($codetags->preserveWhitespace()) {//this should be indented$erik->makeHappy();} else {// also indentedfix();}?>[/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.
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
?>
[/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.
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences