SitePoint Sponsor

User Tag List

Results 1 to 25 of 130

Threaded View

  1. #1
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,889
    Mentioned
    74 Post(s)
    Tagged
    6 Thread(s)

    Code comments and execution time

    Edit:


    This thread was split from http://www.sitepoint.com/forums/gene...de-739087.html

    -- ScallioXTX

    Quote Originally Posted by deathshadow60 View Post
    ...
    ...
    ...
    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;?>}
    Last edited by ScallioXTX; Mar 8, 2011 at 03:34.
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Wolfshade on earning Member of the Month for August 2014


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •