Code comments and execution time
Quote:
Originally Posted by
deathshadow60
...
...
...
We aren't talking about compiled languages here where you can comment until blue in the face and it has zero impact on the binary.
...
...
...
I like PHP comments which are stripped from the final browser output of the generated HTML and CSS:
PHP Code:
// HTML
<?php /* ===================== START BLOCK ======================== */ ?>
<div id='new_left'>
<?php if (! LOCALHOST) { ?>
<br />
<div class='advert_728x90'>
<?php include 'adverts/_google_728x90.php'; ?>
</div>
<?php } ?>
<div>
...
...
...
</div>
<?php /* ===================== END BLOCK ======================== */ ?>
// CSS
<?php
header("Content-type: text/css;charset:UTF-8");// http://www.barelyfitz.com/projects/csscolor/
if(0){include'style.class_colors.php';} // http://www.typefolly.com/
if(1){include'style.style_fonts.php';}
if(1){include'style.style_dimensions.php';}
if(0){include'user_1.php';}// blood,tangerine,banana,ocean,grass,coal
if(1){include'user_2.php';}// blood,tangerine,banana,ocean,grass,coal
$bgg1='eee';
$cl2='900';
$cl3='090';
?>
body {background-color:#<?php echo $bf1;?>;color:#<?php echo $cl2;/* give this colour a whirl and see it is OK */ ?>}
#new_left {clear:both;width:88%;margin:1em auto;border:double 2px #<?php echo $clr3;?>}