473,395 Members | 2,192 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,395 software developers and data experts.

formatting HTML

Ant
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
Aug 28 '06 #1
5 1256
"Ant" <An*@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
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.
Aug 28 '06 #2
Ant
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

"Mark Rae" wrote:
"Ant" <An*@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
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.
Aug 28 '06 #3
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" <ma**@markNOSPAMrae.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
"Ant" <An*@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
>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.

Aug 28 '06 #4
"Ant" <An*@discussions.microsoft.comwrote in message
news:34**********************************@microsof t.com...
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...
Aug 28 '06 #5
Ant
thanks for the tip...

Ant

"Eliyahu Goldin" wrote:
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" <ma**@markNOSPAMrae.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
"Ant" <An*@discussions.microsoft.comwrote in message
news:2D**********************************@microsof t.com...
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.


Aug 30 '06 #6

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

Similar topics

163
by: Shiperton Henethe | last post by:
Hi Know any good utilities to help me strip out the tags that Microsoft Excel 2002 leaved behind when you try and export an HTML format file? This is driving me NUTS. And really makes me...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
10
by: Coleen | last post by:
Hi all :-) I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML. Here is the snippet of code for the cell I'm trying to format: Dim...
3
by: =?Utf-8?B?b24tbGluZSBqb3VybmFsIGVkaXRvcg==?= | last post by:
I can't seem to cut-and-paste text, with either .doc or .html formatting, into my .asp web-pages --all the formatting is lost. Is there some code that needs to be added to the page that will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.