Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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�s not just inputs, tables too.

 

<table></table> changes to <table id="Table1"></table>

 

Does anyone know of a way I can switch this off?

  • Moderators
Posted

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.

Visit...Bassic Software
Posted
I know this probably isn't what you want to hear.. :D .. but.. the IDE inserting id/name properties in tags that you paste doesn't hurt anything. You can avoid this by either hand typing what you want or just simply deleting the id/name properties after you're done doing all your pasting... or just leave them.
Gamer extraordinaire. Programmer wannabe.
Posted

I know you are right. It�s just I don't like it when companies add the things then don�t give you the option of switching it off.

 

oh well :(

  • 2 months later...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...