473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Commenting out XML

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
Nov 15 '05 #1
4 7723
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
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
--
http://www.csharp-station.com
Nov 15 '05 #2
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

"Joe Mayo" <jm***@ddiieessppaammeerrssddiiee.com> wrote in message
news:eA**************@tk2msftngp13.phx.gbl...
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
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
--
http://www.csharp-station.com

Nov 15 '05 #3
Then replace the -->'s with %-> and then when restoring the commented-out
block do a find/replace for %-> to -->.

Be creative.

Jon
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...
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

"Joe Mayo" <jm***@ddiieessppaammeerrssddiiee.com> wrote in message
news:eA**************@tk2msftngp13.phx.gbl...
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
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
--
http://www.csharp-station.com


Nov 15 '05 #4
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" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Then replace the -->'s with %-> and then when restoring the commented-out
block do a find/replace for %-> to -->.

Be creative.

Jon
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:ut**************@TK2MSFTNGP11.phx.gbl...
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

"Joe Mayo" <jm***@ddiieessppaammeerrssddiiee.com> wrote in message
news:eA**************@tk2msftngp13.phx.gbl...
"Ron McNulty" <rm******@xtra.co.nz> wrote in message
news:OM**************@TK2MSFTNGP11.phx.gbl...
> 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
--
http://www.csharp-station.com



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: LRW | last post by:
OK, this is probably an odd, but esy question. =) I taught myself PHP from a Julie Meloni book and newsgroup questions. So, I don't think I've really learned the proper way of organizing and...
19
by: qazmlp | last post by:
I hope comp.lang.c will not find the following question as a complete off-topic. I would like to remove ie.comment out the 'cout' statements during compilation(actually preprocessing) time. ...
46
by: Profetas | last post by:
Hi, I know that this is off topic. but I didn't know where to post. Do you comment your source code while coding or after coding. for example: you write a procedure and after it is...
3
by: Naveen Mukkelli | last post by:
Hi All, I'm trying to create XML commenting for my code using XML commenting feature for the first time. I'm using VS.NET 2003 and C#. I'v tried the following way. Step 1: set the file name...
18
by: Marian F. | last post by:
The 12 years old genius function to count english words in a sentence: ' This is my function to count english words in your string ' s is the string with your words to be counted ' Returns an...
8
by: lallous | last post by:
Hello I've been programming for a number of years, however my commenting style is always different. Sometimes I use something like: /************************ * method .... * comments......
2
by: RYoung | last post by:
Can someone point me to a reference concerning source code commenting with VB 2005, ala C# commenting? I googled and found alot of links to add-ins and commercial products, but I can't find any...
1
by: Wijaya Edward | last post by:
Hi all, I have the following code: import sys import re ham_count = 0 spam_count = 0
100
by: Angel Tsankov | last post by:
Can someone recommend a good source of C/C++ coding style. Specifically, I am interested in commenting style and in particular how to indent comments and the commented code, rather than when to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.