|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
system.configurationHi,
the method Save() from System.Configuration.Configuration writes the xml config file. is it possible to change the width of this file text lines? I'd like to edit it manually from time to time, but the default writer wraps it around 70 characters line length. I'd suit me best to turn off the line wrapping in config files completely CUIN Kaczy I would venture to say that the wrapping is most likely from your text
editor and not from the file itself. What editor are you using? Have you looked at its properties to see if word-wrap has been turned on? If the config file is actually what is "wrapping", then I would believe that you are inserting some unintended CRLF within this file. You might look at your code and your config file construction process to see if this is the case. Hope this helps! -- Show quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Andrzej Kaczmarczyk" <akaczmarc***@visualsystems.com.pl> wrote in message news:eR8jTcWBGHA.976@TK2MSFTNGP15.phx.gbl... > Hi, > > the method Save() from System.Configuration.Configuration > writes the xml config file. > > is it possible to change the width of this file text lines? I'd like to > edit it manually from time to time, but the default writer wraps it around > 70 characters line length. > > I'd suit me best to turn off the line wrapping in config files completely > > CUIN Kaczy > >I would venture to say that the wrapping is most likely from your text I've checked before posting (and now i've checked again), and the wrappings>editor and not from the file itself. What editor are you using? Have you >looked at its properties to see if word-wrap has been turned on? are off here is the example (assume that I know how to turn off word-wraping in text editor ;) ) <parameter aggregable="false" type="System.String" default="" name="BuildingDescription"> <description text="" category="" order="0" name="" /> </parameter> surprisingly, I've seen much longer lines in main app.exe.config the section from which the above fragment was ripped is defined to be stored in external file the line break is always after 'default' item, and the indentation is perfect Show quote > > If the config file is actually what is "wrapping", then I would believe > that you are inserting some unintended CRLF within this file. You might > look at your code and your config file construction process to see if this > is the case. > > Hope this helps! > -- > Christopher A. Reed > "The oxen are slow, but the earth is patient." CUIN Kaczy Can you post some code?
-- Show quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "Andrzej Kaczmarczyk" <akaczmarc***@visualsystems.com.pl> wrote in message news:O%23bvlhjBGHA.2040@TK2MSFTNGP14.phx.gbl... > >I would venture to say that the wrapping is most likely from your text > >editor and not from the file itself. What editor are you using? Have > >you looked at its properties to see if word-wrap has been turned on? > > I've checked before posting (and now i've checked again), and the > wrappings > are off > here is the example (assume that I know how to turn off word-wraping in > text > editor ;) ) > > <parameter aggregable="false" type="System.String" default="" > name="BuildingDescription"> > <description text="" category="" order="0" name="" /> > </parameter> > > surprisingly, I've seen much longer lines in main app.exe.config > the section from which the above fragment was ripped is defined to be > stored > in external file > the line break is always after 'default' item, and the indentation is > perfect |
|||||||||||||||||||||||