Visual Studio "Paste as HTML" fallacy?
Visual Studio has this weird habit to paste text as text, but call it 'paste as HTML instead:
When, for example, you cut and paste some code from another location to a page in VS.NET (older versions worked the same), by default the editor will paste HTML cruft on your screen, like this<asp:DropDownList <B>onChange="LoadCountries(this)"</B>ID="loader" Runat="server" />
while instead you expect something like
<asp:DropDownList <B>onChange="LoadCountries(this)"</B>ID="loader" Runat="server" />
Now my point is, when you press 'Paste As HTML', the HTML tags will be REMOVED and stripped down text will be pasted instead. This has always bugged me, and I don't know the reasoning behind it. If someone has an idea, please share your thoughts in the comments!
0 Comments:
Post a Comment
<< Home