Results 1 to 4 of 4

Thread: Missing code in code tag

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Missing code in code tag

    Hello,
    http://www.vbforums.com/showpost.php...99&postcount=2

    In that post, i have a line of code at the very bottom that is not showing up. It is a comment in the code, but its not visible in the post. If you go to edit it (mods/admin) you see that the code is actually there...

    Weird. im not sure why its doing that. any ideas

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Missing code in code tag

    I've got no idea, but can confirm that I don't see the following line (in Firefox or IE):
    //logging out is just setting the session to null or destroying the session

  3. #3
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,614

    Re: Missing code in code tag

    Interesting. I'm not sure what is going on either. I'd have to dig into the code for the php bbcode tag.....

    What I did determine is that if you add anything (other than another comment) after your two comments, then it will all show. If the last non-blank line is a comment, then it won't show. (If you take out the dash I added and add another comment line, you'll get another line of your code to display.

    Quite interesting. My guess is there is an error with the logic around the single line comments in the bbcode code.

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  4. #4

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Missing code in code tag

    I added a few more lines, ending with a line of code instead of a comment...

    Interesting find though

Posting Permissions

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



Click Here to Expand Forum to Full Width