Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Bug (Q and A forum)[Solved] [modified]

Bug (Q and A forum)[Solved] [modified]

Scheduled Pinned Locked Moved Site Bugs / Suggestions
questionhelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ShilpiP
    wrote on last edited by
    #1

    When I answer one question and add line

    #include

    than it display like

    #include

    I tried it two to three times but not succeeded. Is it a bug ?? Please check. Reason: I use the code block after adding the string. Thanks

    "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)

    modified on Thursday, May 19, 2011 10:49 PM

    L 1 Reply Last reply
    0
    • S ShilpiP

      When I answer one question and add line

      #include

      than it display like

      #include

      I tried it two to three times but not succeeded. Is it a bug ?? Please check. Reason: I use the code block after adding the string. Thanks

      "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)

      modified on Thursday, May 19, 2011 10:49 PM

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)

      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      A S 2 Replies Last reply
      0
      • L Luc Pattyn

        did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)

        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

        A Offline
        A Offline
        AspDotNetDev
        wrote on last edited by
        #3

        Yeah, when I view the source of the OP, I see the first line should have been:

        #include <atlstr.h>

        And the second line should have been:

        #include <atlstr.h></atlstr.h>

        I imagine the problem they are running into is 1) they are not escaping their HTML characters so 2) Code Project is detecting an open tag and automatically adding a close tag (at least, that's the way CP's code seems to be seeing it).

        [Managing Your JavaScript Library in ASP.NET]

        L 1 Reply Last reply
        0
        • A AspDotNetDev

          Yeah, when I view the source of the OP, I see the first line should have been:

          #include <atlstr.h>

          And the second line should have been:

          #include <atlstr.h></atlstr.h>

          I imagine the problem they are running into is 1) they are not escaping their HTML characters so 2) Code Project is detecting an open tag and automatically adding a close tag (at least, that's the way CP's code seems to be seeing it).

          [Managing Your JavaScript Library in ASP.NET]

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          IMO there is ample opportunity here for CP to do a better job. They could check all < and > signs and the text enclosed, and whenever it isn't an acceptable HTML tag, automatically escape those angulars. I always considered it a poor choice accepting HTML inside PRE blocks, there is more harm than benefit here (especially when the bold effect, potentially the most useful one, isn't working [particularly well). Of course the OP is also at fault, as he didn't check his message, he should have seen it wasn't conveying what he meant. :)

          Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

          1 Reply Last reply
          0
          • L Luc Pattyn

            did you escape any < and > and & as you should in an HTML environment? your example doesn't work for me, you don't include a thing, probably there was something like <filename> which looks a bit like an unrecognized HTML tag, and would get swallowed. You might want to read this[^]. :)

            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

            S Offline
            S Offline
            ShilpiP
            wrote on last edited by
            #5

            Hi Luc, Thanks for your reply. Actually yesterday I was facing problem that when I first type the line and use pre tag than it display incorrectly but if I use pre tag first and than type the line than it display correctly.Today I am doing the same and it is working fine. I don't understand why file name is not displayed here. No escaping of < and >. May be the reason that I am not using pre tag.

            "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)

            L 1 Reply Last reply
            0
            • S ShilpiP

              Hi Luc, Thanks for your reply. Actually yesterday I was facing problem that when I first type the line and use pre tag than it display incorrectly but if I use pre tag first and than type the line than it display correctly.Today I am doing the same and it is working fine. I don't understand why file name is not displayed here. No escaping of < and >. May be the reason that I am not using pre tag.

              "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              I don't know what happened since yesterday, however your original message looks different now. :)

              Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

              S 1 Reply Last reply
              0
              • L Luc Pattyn

                I don't know what happened since yesterday, however your original message looks different now. :)

                Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                S Offline
                S Offline
                ShilpiP
                wrote on last edited by
                #7

                Yes I did it. I want to show you the problem but today many times I tried and not find the issue that I was facing yesterday. :)

                "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups