0
Welcome Guest! Login
0 items Join Now

How to Comment out

  • How to Comment out

    Posted 17 years 6 months ago
    • HTML Commenting

      1. Example Code
      <div class="example"></div>
      2. Comment
      <!--<div class="example"></div>-->

      CSS Commenting

      1. Example Code
      div.example{}
      2. Comment
      /*div.example{}*/

      PHP Commenting

      1. Example Code
      <div class="<?php echo $example ?>"></div>
      2. Comment
      <div class="<?php /*<?php echo $example ?>*/ ?>"></div>
    • James Spencer / Developer & Support / Hull, UK
    • 's Avatar

    Re: How to Comment out

    Posted 17 years 6 months ago
    • Thanks, James, I needed that.

      Just to be sure I understand:
      HTML method used on files like “index.htm” or “.html”?
      CSS method on files like template_css.css ?
      PHP method of files like “index.php”?


      Now, how about something like this for solving the problem of multiple or conflicting javascript entries.

      How to find them,
      Which one needs to be moved and exactly where to move it
      Which ones need to be commented out and how
  • Re: How to Comment out

    Posted 17 years 6 months ago
    • Amgeek wrote:
      Just to be sure I understand:
      HTML method used on files like “index.htm” or “.html”?
      CSS method on files like template_css.css ?
      PHP method of files like “index.php”?
      Yes and no. You can find HTML, CSS and PHP in the index.php and vice versa but the norm is as you described. You can tell from the syntax used.
      Amgeek wrote:
      Now, how about something like this for solving the problem of multiple or conflicting javascript entries.

      How to find them,
      Which one needs to be moved and exactly where to move it
      Which ones need to be commented out and how
      An example script entry in the index.php
      <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools.js"></script>

      For that, use the HTML commenting method.

      If there is incompatible, comment out all scripts except ie.js or ie_suckerfish.js which is needed for IE and suckerfish. Examples are reflection.js, rokzoom.js, slimbox.js and rokmoomenu.js

      For all <script ... /> syntax in templates, use HTML commenting
    • James Spencer / Developer & Support / Hull, UK
    • flacolax's Avatar
    • flacolax
    • Jr. Rocketeer
    • Posts: 41
    • Thanks: 1

    Re: How to Comment out

    Posted 15 years 9 months ago
    • gracias
  • Re: How to Comment out

    Posted 15 years 5 months ago
    • Any idea how to comment out on a .ini file?
  • Re: How to Comment out

    Posted 14 years 10 months ago
    • How can I comment the rokbox code ?
      {rokbox}images/image.jpg{/rokbox} ?

      thanks
      Bruno Alecrim

Time to create page: 0.089 seconds