Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Illegal XML when using nested comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

New Member

3 Posts

Posted - Feb 28 2014 :  03:38:00 AM  Show Profile  Reply with Quote

the key * for commenting out a selected code section also works for XML, which is great. But when there's already a comment in the selection then it is changed from "<!--" to "< ! --", which is invalid. The sequence "--" is not allowed in XML comments.

Using VAX build 2029 in VS 2010.

To reproduce, create an XML file:
<?xml version="1.0" encoding="UTF-8"?>
    <!-- My comment -->

Select the <foo> lines and comment them out:
    < ! -- My comment -- >

Suggestion: Instead of
< ! -- ... -- >
use this:
<!- - ... - ->

Whole Tomato Software

United Kingdom
18675 Posts

Posted - Mar 03 2014 :  9:41:03 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description and the suggestion of how to handle this:


zen is the art of being at one with the two'ness
Go to Top of Page

Whole Tomato Software

2817 Posts

Posted - Apr 07 2014 :  3:33:13 PM  Show Profile  Reply with Quote
case=80664 is fixed in build 2031
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000