Oddness that I never noticed before
-
Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:
So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:
-->
Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:
It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:
-
Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:
So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:
-->
Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:
It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:
-
Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled. Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit... Just being able to add some typical comments inside some basic XAML looks like so:
So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:
-->
Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment. This however is just fine apparently:
It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines: