Re: How To Stop VS2005 From Reformatting HTML Source?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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


.



Relevant Pages

  • Re: Simple question ??
    ... A web page is basically an HTML document. ... a technology that, at the most basic level, delivers HTML to a web browser. ... Internet Explorer, for example, can display Word documents, ... file format to a browser in its native state. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Salamander is now webbed
    ... page images instead of html. ... readers and smart phones avoid this problem by having a smaller "page ... CTRL-+ multiplies the pixels which doesn't work with thin typefaces ... That's "format paragraph" ...
    (rec.arts.sf.composition)
  • Re: Mail Merge HTML Format Word 2002 XP SP3
    ... I would suggest that you ask the question in an Outlook newsgroup. ... HTML format as you have no control over how the recipient reads them. ... Dim olApp As Outlook.Application ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Completely Blank E-mail Messages (should be messages with atta
    ... messages from the same sender are okay, ... RECEIVED message, The Edit Message, and Format to HTML. ... Are both senders and recipients using Outlook Express? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Mail Merge HTML Format Word 2002 XP SP3
    ... HTML format as you have no control over how the recipient reads them. ... 'Creates a new e-mail item and modifies its properties. ... Dim olApp As Outlook.Application ...
    (microsoft.public.word.mailmerge.fields)