formatting HTML

G

Guest

Simple question - I think...

I want to make the HTML in my ASP.NET more readable by seperating all the
HTML controls by a line or two, but when I run the app. or switch to design
mode, it snaps back into one big ugly block of messy HTML. Difficult to find
controls amongst.

Is there an option I can set to turn this auto bunching up of code off?

It would be soooo nice if there was.

Thanks for any suggestions.

In hope

Ant
 
M

Mark Rae

I want to make the HTML in my ASP.NET more readable by seperating all the
HTML controls by a line or two, but when I run the app. or switch to
design
mode, it snaps back into one big ugly block of messy HTML. Difficult to
find
controls amongst.

I'm guessing you're still running Visual Studio.NET 2003...
Is there an option I can set to turn this auto bunching up of code off?

Not completely, despite what people may tell you... There are several
options you can set regarding auto-formatting of HTML, but they won't cure
it completely. This was one of my biggest complaints about the previous
version of Visual Studio.NET
It would be soooo nice if there was.

Luckily, it has completely gone away in Visual Studio.NET 2005.
 
G

Guest

Hi Mark,

Thanks for the support. Yes, VS2003 it is.

I actually got around it. I went into Options/Text Editor/HTML/General &
unchecked the 'Enable virtual space'. Although I'd looked at this, it seemed
counter intuitive as I wanted to 'enable' 'virtual' space. But diasabling it
ended up doing the trick (?)

Looking forward to VS2005 !

Thanks very much for your input .

Ant
 
M

Mark Rae

Thanks for the support. Yes, VS2003 it is.

Thought so...
I actually got around it. I went into Options/Text Editor/HTML/General &
unchecked the 'Enable virtual space'. Although I'd looked at this, it
seemed
counter intuitive as I wanted to 'enable' 'virtual' space. But diasabling
it
ended up doing the trick (?)

Don't rely on this - it will get you sooner or later...
 
E

Eliyahu Goldin

That's right, you can't stop VS from messing up the html. You can try to
clean the mess though. After switching to Design View and making changes
there, go back to Html View and press Ctrl-Z (or whatever else you use for
Undo) once or twice. It may restore your formatting.
 
G

Guest

thanks for the tip...

Ant

Eliyahu Goldin said:
That's right, you can't stop VS from messing up the html. You can try to
clean the mess though. After switching to Design View and making changes
there, go back to Html View and press Ctrl-Z (or whatever else you use for
Undo) once or twice. It may restore your formatting.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


Mark Rae said:
I'm guessing you're still running Visual Studio.NET 2003...


Not completely, despite what people may tell you... There are several
options you can set regarding auto-formatting of HTML, but they won't cure
it completely. This was one of my biggest complaints about the previous
version of Visual Studio.NET


Luckily, it has completely gone away in Visual Studio.NET 2005.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top