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. Closing XML tags in pre code block (QA)

Closing XML tags in pre code block (QA)

Scheduled Pinned Locked Moved Site Bugs / Suggestions
csharpasp-netcombeta-testingxml
2 Posts 1 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.
  • M Offline
    M Offline
    markovl
    wrote on last edited by
    #1

    After posting a solution in QA that included a C# code sample I noticed that the editor decided to close some XML tags, that should have not been treated like tags in the first place - they are placed in a comment. The live preview didn't include the closing tags, but the submitted version appended them at the end of the code block. The problem should be visible here: Create XML Dynamically using Asp.net C#.[^] I'll try to test it also here:

    // some in a comment

    Edit: not reproduced in this message (obviously :) )

    2A

    M 1 Reply Last reply
    0
    • M markovl

      After posting a solution in QA that included a C# code sample I noticed that the editor decided to close some XML tags, that should have not been treated like tags in the first place - they are placed in a comment. The live preview didn't include the closing tags, but the submitted version appended them at the end of the code block. The problem should be visible here: Create XML Dynamically using Asp.net C#.[^] I'll try to test it also here:

      // some in a comment

      Edit: not reproduced in this message (obviously :) )

      2A

      M Offline
      M Offline
      markovl
      wrote on last edited by
      #2

      Hm, I guess it's a feature, rather than a bug. Maybe include it also in the "Live preview" to avoid confusion? (Sorry, I'm easily confused ;P ) Happened again Solution 4[^] - automatic insertion of a </head> closing tag. In the future should I encode < and > with &lt; and &gt; to avoid automatic completion? Or edit the post to delete the unnecessary tags? Or just ignore it? :) PS. I just noticed the "Encode HTML Extended Character Code for XX" buttons in the editor, I guess that's what they're there for. :doh:

      2A

      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