[BUG?]Multy Line Comment on code block.

Started by JayBachatero, October 26, 2005, 06:22:30 PM

Previous topic - Next topic

JayBachatero

It i have a multy-line comment in a code block that starts /* and i don't add the ending */ the comment doesnt show at all.


<?php
// Version: 1.0; index

/*   This template is, perhaps, the most important template in the theme.  It
  contains the main template layer that displays the header and footer of
  the forum, namely with main_above and main_below.  It also contains the
  menu sub template, which appropriately displays the menu; the init sub
  template, which is there to set the theme up; (init can be missing.) and
  the linktree sub template, which sorts out the link tree.

  The init sub template should load any data and set any hardcoded options.

  The main_above sub template is what is shown above the main content, and
  should contain anything that should be shown up there.

  The main_below


<?php
// Version: 1.0; index

/*   This template is, perhaps, the most important template in the theme.  It
   contains the main template layer that displays the header and footer of
   the forum, namely with main_above and main_below.  It also contains the
   menu sub template, which appropriately displays the menu; the init sub
   template, which is there to set the theme up; (init can be missing.) and
   the linktree sub template, which sorts out the link tree.

   The init sub template should load any data and set any hardcoded options.

   The main_above sub template is what is shown above the main content, and
   should contain anything that should be shown up there.

   The main_below
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

dtm.exe

What theme are you using?  As far as 1.0 is concerned, index.template.php reads as follows:

<?php
// Version: 1.0; index

/* This template is, perhaps, the most important template in the theme.  It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below.  It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

JayBachatero

no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

dtm.exe

Quote from: JayBachatero on October 26, 2005, 06:32:09 PM
no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.

Ah, my mistake.  You seem to be right on this one.

* dtm.exe reports this to Compuart.

JayBachatero

Quote from: dtm.exe on October 26, 2005, 06:34:55 PM
Quote from: JayBachatero on October 26, 2005, 06:32:09 PM
no im reffering when you add a code block in a post.  If you leave out the */ it doesnt show the comment.

Ah, my mistake.  You seem to be right on this one.

* dtm.exe reports this to Compuart.

its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

dtm.exe

Quote from: JayBachatero on October 26, 2005, 06:36:24 PM
its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.

However minor a bug it may be, it's still a bug...and it can still be fixed.

JayBachatero

Quote from: dtm.exe on October 26, 2005, 06:38:22 PM
Quote from: JayBachatero on October 26, 2005, 06:36:24 PM
its ok :P.  Its a rare instance that someone posts a comment block only and forget the */.  People usually posts the important stuff.

However minor a bug it may be, it's still a bug...and it can still be fixed.

Yea thats true.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Joshua Dickerson

Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Advertisement: