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