Re: Stop VS.Net from reformatting my aspx pages

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Abhishek Srivastava (abhishek-srivastava_at_nospam.net)
Date: 02/10/04


Date: Tue, 10 Feb 2004 10:50:08 +0530

I beautify my code. do proper indentation, close all tags. put every
attribute in quotes. And then savee the file.

And VS.Net goes and sh*ts all over it. Indentation is totally horrible,
All my <br/> become <br> align='center' becomes align=center. I hate its
html editor. (but for complex pages there is no other way but to go in
html mode and edit.)

I want to keep my html as well formed as possible. But VS.Net does
totally the opposite. Which is wierd because VS.Net boasts of XML
compatibility everywhere ... yet it will remove closed tags from my code??

I think this is a bug. Atleast programmers should be given a choice
whether they want to keep all tags closed (except some lage html things
like <input type'checkbox' selected>) and all attributes in quotes.

regards,
Abhishek.

Ed Kaim [MSFT] wrote:
> I think ASP.NET Web Matrix supports custom markup layout today (won't "fix"
> personal styles). Info at
> http://asp.net/webmatrix/default.aspx?tabIndex=4&tabId=46.
>
> "Michael Ramey" <raterus@localhost> wrote in message
> news:OAvBRty7DHA.1000@TK2MSFTNGP11.phx.gbl...
>
>>I think its funny, I posted a question similar to this about two months
>
> ago
>
>>and never got a response. You would think this YES un-turn-off-able
>>"feature" would cause a pretty big outroar, but very few people mention
>
> it.
>
>>I think it's all a conspiracy, Microsoft wants to standardize HTML output,
>>and our monitors aren't compatible with the mind probe they are using to
>>control everyone else's brain to just accept the badly formatted tags. No
>>wait, I've been watching too much TV, actually I heard once there should
>
> be
>
>>an option to turn this off in the next release. I know that doesn't
>
> provide
>
>>too much comfort to you now, you can do what I had to do... live with it.
>>
>>"Abhishek Srivastava" <abhishek-srivastava@nospam.net> wrote in message
>>news:%23gehFcw7DHA.2432@TK2MSFTNGP10.phx.gbl...
>>
>>>Hello All,
>>>
>>>I am developing a page which has a complex layout. This layout cannot be
>>>made using VS alone, so I have to go into the html view and edit the
>>>html myself.
>>>
>>>The problem is that everytime I save the file, (or add/remove any
>>>component to the page) VS.Net reformats and re-edits the whole page.
>>>
>>>I find this very irrating because VS.Net totally disorganizes my code.
>>>It removes all the quotes so align='center' becomes align=center
>>>
>>><td>
>>>Hello
>>><td>
>>>
>>>becomes
>>><td>
>>>Hello</td>
>>>
>>>I capitalizes / decapitalizes strings arbitrarily.
>>>
>>>sometimes it also adds some extra </tr> to my code making my layout go
>>>haywire.
>>>
>>>I want to know if there is someway I can tell it to stop reformatting
>>>and re-editing my code.
>>>
>>>regards,
>>>Abhishek.
>>
>>
>
>



Relevant Pages

  • Re: word webpages
    ... The ther are som tags with no closing tags DreamWeaver would remove what ever was causing these problems. ... Just create a simple document and save as HTML Make sure it has some type of formatting. ... XML all versions ...
    (microsoft.public.mac.office.word)
  • Re: macro and cl-who help
    ... Lisp, but... ... you back into the "walking forms as HTML data" mode, ... This would have been extensible with user-defined tags, ... HTML tags are macros can be functions: ...
    (comp.lang.lisp)
  • Re: html scraping
    ... Not for parsing HTML! ... DOM and SimpleXML are the right tools here. ... parser that can deal with missing end tags. ... -- If a close tag is seen, push it on the stack. ...
    (comp.lang.php)
  • Re: Volunteer work:)- new Kona Coffee Farmers site
    ... SEO is search engine optimization, which concerns itself with how well your page is indexed by Google or the other search engines. ... Good SEO involves many aspects of the page design, including well-structured HTML documents, appropriate HTML tags and tags, semantic HTML, keyword-optimized URLs, a good domain name, and copious, keyword-dense content. ...
    (alt.coffee)
  • Re: Volunteer work:)- new Kona Coffee Farmers site
    ... SEO is search engine optimization, which concerns itself with how well your page is indexed by Google or the other search engines. ... Good SEO involves many aspects of the page design, including well-structured HTML documents, appropriate HTML tags and tags, semantic HTML, keyword-optimized URLs, a good domain name, and copious, keyword-dense content. ...
    (alt.coffee)