Commenting out XML

  • Thread starter Thread starter Ron McNulty
  • Start date Start date
R

Ron McNulty

Often when testing an app, I want to temporarily comment out sections of the
App.config file. Is there any way to do this?

Regards

Ron
 
Ron McNulty said:
Often when testing an app, I want to temporarily comment out sections of the
App.config file. Is there any way to do this?


Hi Ron,

Use this:

<!--
<commented code/>
-->

Joe
 
Hi Joe

Thanks for the reply. However, I often have comments inside the section I am
commenting out, and this fails when it hits the first --> :)

Regards

Ron
 
Then replace the -->'s with %-> and then when restoring the commented-out
block do a find/replace for %-> to -->.

Be creative.

Jon


Ron McNulty said:
Hi Joe

Thanks for the reply. However, I often have comments inside the section I am
commenting out, and this fails when it hits the first --> :)

Regards

Ron
 
Hi Jon

Sounds like that would work, but it is a tad more messy than hitting a
toolbar button (e.g. When commenting out C#).

Regards

Ron

Jon Davis said:
Then replace the -->'s with %-> and then when restoring the commented-out
block do a find/replace for %-> to -->.

Be creative.

Jon


Ron McNulty said:
Hi Joe

Thanks for the reply. However, I often have comments inside the section
I
am
commenting out, and this fails when it hits the first --> :)

Regards

Ron
sections
 
Back
Top