Annoying html tags in visual studio

M

michi

Hello everybody…

When working with Visual Studio ASP.Net it inserts me always unneeded
html tags when switching from the WYSIWYG view to the HTML view. I am
especially keen on the "<Font face=xxx>" tag.

How to I switch off, this "automated html inserts?
Or, can I define these default values (not css)

I tried already the Tools->Options Menu.

Any ideas..

Thanks a lot )

Michael Weber
 
M

Mike Bridge

Hi-

Unfortunately, I think you're out of luck. I fought a similar battle
with my installation of Visual Studio over XHTML and I had to concede
defeat.

The Design View is even more annoyingly un-helpful than that MSOffice
Paper Clip. It's typical poor Microsoft tool design---by trying to
make the thing "smarter", it becomes unusable if you try to deviate
from the path by even a few small steps.

As far as I can tell, the only way to get VS to stop screwing up HTML
is to stop using the Design View until they release the next
version---hopefully it will suck less.

Or better yet, maybe resharper will be out soon.

-Mike
 
J

Jon Person

There is a way to remove some of the automatic "formatting" (ahem) that
occurs in HTML view, but I'm not certain it will remove the extra <FONT>
tags you're talking about. In case it helps, try this:

1) Go to the "Tools..." menu and select "Options"
2) Expand "Text Editor" and "HTML/XML"
3) Click on the "Format" node
4) Clear any or all of the following checkboxes:

[ ] When saving document
[ ] When switching from Design to HTML/XML view
[ ] Apply line breaks
[ ] Insert value attribute quotes

Plus any of the drop-downs for Tags and Attributes

Best of luck,

Jon Person
StormSource Software
http://www.gpsdotnet.com
 
M

michi

Thanks for helping Jon...

But it did not work.

In my office this "font tag" is NOT inserted automatically. So it must
be a setting I guess.

If you have any other idea, let me know

Thanks

Michael


Jon Person said:
There is a way to remove some of the automatic "formatting" (ahem) that
occurs in HTML view, but I'm not certain it will remove the extra <FONT>
tags you're talking about. In case it helps, try this:

1) Go to the "Tools..." menu and select "Options"
2) Expand "Text Editor" and "HTML/XML"
3) Click on the "Format" node
4) Clear any or all of the following checkboxes:

[ ] When saving document
[ ] When switching from Design to HTML/XML view
[ ] Apply line breaks
[ ] Insert value attribute quotes

Plus any of the drop-downs for Tags and Attributes

Best of luck,

Jon Person
StormSource Software
http://www.gpsdotnet.com


Mike Bridge said:
Hi-

Unfortunately, I think you're out of luck. I fought a similar battle
with my installation of Visual Studio over XHTML and I had to concede
defeat.

The Design View is even more annoyingly un-helpful than that MSOffice
Paper Clip. It's typical poor Microsoft tool design---by trying to
make the thing "smarter", it becomes unusable if you try to deviate
from the path by even a few small steps.

As far as I can tell, the only way to get VS to stop screwing up HTML
is to stop using the Design View until they release the next
version---hopefully it will suck less.

Or better yet, maybe resharper will be out soon.

-Mike
 

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