473,385 Members | 1,375 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,385 software developers and data experts.

Visual Studio HTML IDE

I posted this in another newsgroup, so please forgive me if you've already
seen it.
---

Am I missing something here?

Quite frequently, I'll write an aspx document taking care to format the HTML
so that I and others on my team can read it. <sarcasm>We kind of like to
know what's going on when we come back to the document later.</sarcasm> In
any case, the editor, when switching from HTML view to the designer view
will do crazy things like completely remove all of the formatting in the
HTML as well as remove style and other attributes, and it will even remove
the quotes from the attributes it leaves in place.

I've checked the options for my IDE, and I've turned off HTML validation and
unchecked the Apply Automatic Formatting boxes. Is there another setting I
need to check to get the IDE to leave my HTML as I enter it. I'm really
getting tired of having to fix the IDE's screw ups because it REALLY doesn't
know how to write HTML.

TIA for any assistance.

Craig
Nov 19 '05 #1
15 1387
As others have pointed out, this is a WKP (well-known problem) with
VS.NET 2002 and VS.NET 2003, which has been fixed in VS.NET 2005.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Craig Hunt" <us**@domain.com> wrote in message
news:uf********************@tornado.tampabay.rr.co m...
I posted this in another newsgroup, so please forgive me if you've already
seen it.
---

Am I missing something here?

Quite frequently, I'll write an aspx document taking care to format the HTML
so that I and others on my team can read it. <sarcasm>We kind of like to
know what's going on when we come back to the document later.</sarcasm> In
any case, the editor, when switching from HTML view to the designer view
will do crazy things like completely remove all of the formatting in the
HTML as well as remove style and other attributes, and it will even remove
the quotes from the attributes it leaves in place.

I've checked the options for my IDE, and I've turned off HTML validation and
unchecked the Apply Automatic Formatting boxes. Is there another setting I
need to check to get the IDE to leave my HTML as I enter it. I'm really
getting tired of having to fix the IDE's screw ups because it REALLY doesn't
know how to write HTML.

TIA for any assistance.

Craig

Nov 19 '05 #2
Hi Craig,

It is a known problem. To get around the missing quotes thing don't switch
between Design & HTML views while your app is running in the IDE. If you do
and your quotes go away then when your app is stopped make a small change in
HTML view then switch to Design view and back to HTML view and everything
should have quotes again. Annoying workaround, but it has saved me some
time. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Craig Hunt" <us**@domain.com> wrote in message
news:uf********************@tornado.tampabay.rr.co m...
I posted this in another newsgroup, so please forgive me if you've already
seen it.
---

Am I missing something here?

Quite frequently, I'll write an aspx document taking care to format the HTML so that I and others on my team can read it. <sarcasm>We kind of like to
know what's going on when we come back to the document later.</sarcasm> In any case, the editor, when switching from HTML view to the designer view
will do crazy things like completely remove all of the formatting in the
HTML as well as remove style and other attributes, and it will even remove
the quotes from the attributes it leaves in place.

I've checked the options for my IDE, and I've turned off HTML validation and unchecked the Apply Automatic Formatting boxes. Is there another setting I need to check to get the IDE to leave my HTML as I enter it. I'm really
getting tired of having to fix the IDE's screw ups because it REALLY doesn't know how to write HTML.

TIA for any assistance.

Craig

Nov 19 '05 #3
My apologies to the group.

I found the answer to my question about five seconds after I hit send.

Too late to retrieve the message at that point.

Thanks for the reply.

Cheers!

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uZ**************@TK2MSFTNGP14.phx.gbl...
As others have pointed out, this is a WKP (well-known problem) with
VS.NET 2002 and VS.NET 2003, which has been fixed in VS.NET 2005.

Nov 19 '05 #4
Unfortunately with VS 2003, you need to live with this. This is corrected in
VS 2005
--
Aarthi R S

"Craig Hunt" wrote:
I posted this in another newsgroup, so please forgive me if you've already
seen it.
---

Am I missing something here?

Quite frequently, I'll write an aspx document taking care to format the HTML
so that I and others on my team can read it. <sarcasm>We kind of like to
know what's going on when we come back to the document later.</sarcasm> In
any case, the editor, when switching from HTML view to the designer view
will do crazy things like completely remove all of the formatting in the
HTML as well as remove style and other attributes, and it will even remove
the quotes from the attributes it leaves in place.

I've checked the options for my IDE, and I've turned off HTML validation and
unchecked the Apply Automatic Formatting boxes. Is there another setting I
need to check to get the IDE to leave my HTML as I enter it. I'm really
getting tired of having to fix the IDE's screw ups because it REALLY doesn't
know how to write HTML.

TIA for any assistance.

Craig

Nov 19 '05 #5
In a perfect world VS's HTML view would be Notepad with intellisense.

Nov 19 '05 #6
And color-coding, and collapsing regions, and...and...and.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<po*******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
In a perfect world VS's HTML view would be Notepad with intellisense.

Nov 19 '05 #7
How customizable is the HTML editor in 2005 Juan?

Nov 19 '05 #8
Quite a bit, poppybush.

Check out the possibilities in "Tools", "Options", "Text HTML Editor",
and see all the stuff that you can customize in "Tag Specific Options".

Also, if you check "Show all settings", after "Tools", "Options",
you can scroll down to "Text Editor" and the "HTML",
for a bundle of additional settings you can customize.

You can even customize language-specific stuff.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<po*******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
How customizable is the HTML editor in 2005 Juan?

Nov 19 '05 #9
The tag-specific formatting in VS2005 still needs a little work. End
tags wind up all clustered on one line in the same annoying manner that
VS2003 provided:

<ol>
<li>one</li>
<li>two</li></ol>

Even if you tell it to insert a line-break before the ending </ol> tag,
it doesn't happen... unless there is a space before the end tag. But
who is going to remember to separate all their tags with spaces?

Nov 19 '05 #10
>The tag-specific formatting in VS2005 still needs a little work. End
tags wind up all clustered on one line in the same annoying manner that
VS2003 provided:

<snip>

And have you discovered that setting the indent for HTML to zero still
gives indented HTML?

And why does *every* single tag have a separate closing tag? For
example, when you add a Literal, you get...

<asp:Literal ID="" Runat="Server"></asp:Literal>

Why would I want that? I can't think of a single good reason to separate
out the closing tag. Sure, some controls are very likely to want it, but
many aren't. You don't seem to have the choice.

Close, but still so far ;-(

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 23 '05 #11
PL
> And why does *every* single tag have a separate closing tag? For example, when you add a Literal, you get...

What a lot of wining, does an extremely unimportant thing like that really bother you ?
Close, but still so far ;-(


How do you ever get past one single day of programming ? I think you better
take a look at you life and decide if you want to continue with programming
if a small thing like that bothers you that much.

PL.
Nov 23 '05 #12
Hi, Alan.

That behavior is really a disgrace, since the default code
for the Literal tag is without the separate closing tag :

http://beta.asp.net/QUICKSTART/util/...l/Literal1.src

To make this a bit more bearable, did you know that
you can add custom text snippets to VS 2005's Toolbox ?

Just write your tag, formatted the way you like it :

<asp:Literal ID="" Runat="Server"></asp:Literal>

and drag it into the Toolbox.

When you drag that Text snippet into any file,
it will be inserted exactly as you wrote it.

I agree, the Literal, and other controls, should have a closing tag in its
own line, instead of a closing tag separated from the code, but using
the text code snippets help alleviate that pain.

Have you bugged that behavior at the Feedback Center ?
That's the best way to get VS features modified.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:Hn**************@nospamthankyou.spam...
The tag-specific formatting in VS2005 still needs a little work. End
tags wind up all clustered on one line in the same annoying manner that
VS2003 provided:

<snip>

And have you discovered that setting the indent for HTML to zero still gives indented
HTML?

And why does *every* single tag have a separate closing tag? For example, when you add a
Literal, you get...

<asp:Literal ID="" Runat="Server"></asp:Literal>

Why would I want that? I can't think of a single good reason to separate out the closing
tag. Sure, some controls are very likely to want it, but many aren't. You don't seem to
have the choice.

Close, but still so far ;-(

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 23 '05 #13
>Hi, Alan.

That behavior is really a disgrace, since the default code
for the Literal tag is without the separate closing tag :

http://beta.asp.net/QUICKSTART/util/...pnet/samples/c
trlref/standard/Literal/Literal1.src
Oh well, at least I'm not alone!!
To make this a bit more bearable, did you know that
you can add custom text snippets to VS 2005's Toolbox ? <snip>

I knew in theory, but haven't explored far enough to do it myself. I
find it a bit of a shame that I have to do this myself, but at least
once it's done, I can have it how I want it.
Have you bugged that behavior at the Feedback Center ?
That's the best way to get VS features modified.
No I haven't. Where do you go to log such things?

Ta ra
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:Hn**************@nospamthankyou.spam...
>The tag-specific formatting in VS2005 still needs a little work. End
tags wind up all clustered on one line in the same annoying manner that
VS2003 provided:

<snip>

And have you discovered that setting the indent for HTML to zero
still gives indented
HTML?

And why does *every* single tag have a separate closing tag? For
example, when you add a
Literal, you get...

<asp:Literal ID="" Runat="Server"></asp:Literal>

Why would I want that? I can't think of a single good reason to
separate out the closing
tag. Sure, some controls are very likely to want it, but many aren't.
You don't seem to
have the choice.

Close, but still so far ;-(

--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 23 '05 #14
re:
at least once it's done, I can have it how I want it.
Yeah.It should be default behavior, but at least we can do it.

re: Where do you go to log such things?


http://lab.msdn.microsoft.com/productfeedback/

You can make suggestions or file bug reports.
You'll need a Passport account to be able to post there.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:Xy**************@nospamthankyou.spam...
Hi, Alan.

That behavior is really a disgrace, since the default code
for the Literal tag is without the separate closing tag :

http://beta.asp.net/QUICKSTART/util/...l/Literal1.src


Oh well, at least I'm not alone!!
To make this a bit more bearable, did you know that
you can add custom text snippets to VS 2005's Toolbox ?

<snip>

I knew in theory, but haven't explored far enough to do it myself. I find it a bit of a
shame that I have to do this myself, but at least once it's done, I can have it how I
want it.
Have you bugged that behavior at the Feedback Center ?
That's the best way to get VS features modified.


No I haven't. Where do you go to log such things?

======================================
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:Hn**************@nospamthankyou.spam...
>The tag-specific formatting in VS2005 still needs a little work. End
tags wind up all clustered on one line in the same annoying manner that
VS2003 provided:
<snip>

And have you discovered that setting the indent for HTML to zero still gives indented
HTML?

And why does *every* single tag have a separate closing tag? For example, when you add
a
Literal, you get...

<asp:Literal ID="" Runat="Server"></asp:Literal>

Why would I want that? I can't think of a single good reason to separate out the
closing
tag. Sure, some controls are very likely to want it, but many aren't. You don't seem
to
have the choice.

Close, but still so far ;-(

Nov 23 '05 #15
>> Where do you go to log such things?

http://lab.msdn.microsoft.com/productfeedback/

You can make suggestions or file bug reports. You'll need a Passport
account to be able to post there.


Thanks, I've logged two things there, this one and the fact that you
don't seem to be able to turn off HTML indenting. Again, not
earth-shattering, but annoying to those who like neat code.

Thanks for the link. Ta ra

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 23 '05 #16

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

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
33
by: John Timbers | last post by:
I'd like to purchase Visual C# .Net for learning purposes only since it's a lot cheaper than Visual Studio (note that I'm a very experienced C++ developer). Can someone simply clarify the basic...
1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
4
by: wASP | last post by:
Hi, I am contemplating the purchase of Microsoft Visual Studio .NET, and I've noticed that the prices range anywhere from $200 to $600 USD:...
9
by: Brian Lowe | last post by:
I'm using Visual Studio to build ASP.Net pages and I'm trying to be standards compliant by using XHTML. In my page I create valid XHTML such as: <ul> <li>first list item</li> <li>second list...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
11
by: Rolf Welskes | last post by:
Hello, the problem seems to be complex and is in all developments of web-controls which uses own TypeConverter. For this I have here a simple demo-program of the problem: The Control-code: A...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.