Automatic ID and NAME tags

tbag

New member
Joined
Apr 6, 2003
Messages
3
Just a quick ones really.

When I am coding in HTML mode and I copy a piece of code eg:

<input type="submit" value="Save">

When I paste it, ID & NAME tags get added, ie:

<input type="submit" value="Save" id="Submit1" name="Submit1">

I know Microsoft has gone to great lengths to make html editing easier. But I can find anywhere in the options where I can turn this off.

It
 
There are a few options you can change, Tools > Options > HTML/XML > Format...

When I enter <input type="submit" value="Save"> it stays as is, even after compile and save.
 
I have switch off all the options in there. Still, when I copy and paste it still inserts the ID and/or NAME tags
 
I know this probably isnt what you want to hear.. :D .. but.. the IDE inserting id/name properties in tags that you paste doesnt hurt anything. You can avoid this by either hand typing what you want or just simply deleting the id/name properties after youre done doing all your pasting... or just leave them.
 
Its even MORE annoying when your posting a big chunk of code/html and you have no idea how much is in there.


I hate the way Frontpage used do this, and now I find VS taking the same boat.


G
 
Back
Top