Re: How To Stop VS2005 From Reformatting HTML Source?
- From: "clintonG" <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 09:34:13 -0500
"Mikhail Arkhipov (Microsoft)" <mikhaila@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:BF6F1206.16B18%mikhaila@xxxxxxxxxxxxxxxxxxxxxxx
> On 10/9/05 14:48, in article evXs#sRzFHA.4032@xxxxxxxxxxxxxxxxxxxx,
> "clintonG" <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> I can't figure out with setting is used to stop VS2005 from reformatting
>> the
>> HTML source.
>> If I copy and paste a name=value attribute pair the HTML source will
>> reformat itself.
>>
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>>
> Can you please provide exact markup and repro steps? Also, which build are
> you running?
>
> Thanks
> Mikhail Arkhipov (Microsoft)
> -- This post is provided 'AS IS' with no warranties and confers no rights
Thank you for your reply.
I often prefer to format HTML in blocks to make reading the source easier
during design-time...
// Example Block
<asp:RequiredFieldValidator
ID="ChannelTitleTextBoxRequiredFieldValidator" runat="server"
ControlToValidate="ChannelTitleTextBox"
EnableViewState="False"
ErrorMessage="Required Field"
Font-Bold="True">
</asp:RequiredFieldValidator>
If for example I then manually add an attribute such as Display="dynamic"
the source for the control will reformat itself (all CRLF is lost) as
follows
<asp:RequiredFieldValidator ID="ChannelTitleTextBoxRequiredFieldValidator"
runat="server" ControlToValidate="ChannelTitleTextBox" Display="dynamic"
EnableViewState="False" ErrorMessage="Required Field"
Font-Bold="True"></asp:RequiredFieldValidator>
This is especially disturbing as the order of the atttributes are also
rearranged. I think I understand the assembly definition may be used in this
regard.
Text Editor > HTML > Tabs : Indenting = block
Text Editor > HTML > Format : [Server tag, Server attributes] = Assembly
definition
Text Editor > HTML > Miscellaneous : Format HTML on paste = checked
Note: I just unchecked Format HTML on paste. I apologize for having
over-looked that 'miscellaneous' option as my attention was focused on the
'Format' tab.. I have to assume unchecking the miscellaneous option will
solve the reformatting of the HTML.
It would be helpful if there were a document that described these settings
thoroughly as there are so many complaints and misunderstandings it would
help people like myself feeling foolish after asking for help which in this
context may not have even been needed.
Finally, do you think it would be best if formatting were actually
configured on the Formatting tab maybe? Hello? :-)
<%= Clinton Gallagher
.
- References:
- How To Stop VS2005 From Reformatting HTML Source?
- From: clintonG
- Re: How To Stop VS2005 From Reformatting HTML Source?
- From: Mikhail Arkhipov (Microsoft)
- How To Stop VS2005 From Reformatting HTML Source?
- Prev by Date: Re: VS 2003 compiling error
- Next by Date: Remove sln from Source Control?
- Previous by thread: Re: How To Stop VS2005 From Reformatting HTML Source?
- Next by thread: basic question
- Index(es):
Relevant Pages
|