Yea, I know its "not supposed to" but it has been. Funny, I just went into
Options > Text Editor > HTML and observed Tag wrapping was enabled at 80
characters which I just unchecked. That explains one problem I've also
observed but does not seem to explain why carraige returns are being removed
from the formatting of some HTML elements which are being concatenated to
one another.
The concatentation seems to only occur with child elements such as dd which
is a child of dt and li which is a child of ul where the child will be
concatenated to the closing bracket of the parent's closing tag. Am I making
sense? I wish I could make it easier to reproduce for you but to show you
examples such as...
// child element concatenated to parent
<ul><li>...</li>
</ul>
// desired formatted results may include indenting on parent and child
<ul>
<li>...</li>
</ul>
As for spontaneous reformatting I have not nailed that down and do not know
exactly how to replicate yet. One occurence I do know occurs during copy and
paste from one file to another. When doing that I've observed id values are
refactored to some generic value. This bugs the sh!t out of me and I think I
finally found the setting to turn that off. Other occurences may happen when
moving from tab to tab or opening and closing the file in a new tabbed
window. I'm not sure yet.
I've never spent any time in the Text Editor > HTML > Format > Tag Specific
Options settings which would all be set at their default. Out of curiosity I
will study those options. Thanks for reminding me they exist.
I'd also like to fully understand what Options > Text Editor > HTML > Format
> Server tag : Assembly definition actually means rather than just set to
lower case as I've just done. I've been using XHTML 1.0 Transitional to stay
out of quirks mode and the mixed case of controls and their attributes in
the HTML source results in the IDE underlining the mixed case elements with
the red squiggles and information tootip regarding non-compliance with
XHTML. (by the way, I've sent this suggestion to product feedback noting the
intellisense tooltip warnings and related intellisense information should
support copy to clipboard.)
Man a guy could do a whole blog just on learning how to use the Options heh?
Too many of the settings are just sitting there and not documented (to my
knowledge) leaving us to figure out settings by chance. I appreciate your
comments as they have helped me focus on settings I thought I had set but
clearly over-looked but the changes to settings I have made tonight do not
infeer I have discovered a solution to resolve the reformatting of child
elements in the HTML source.
<%= Clinton Gallagher
> On 12/29/05 7:58, in article uD9lmBJDGHA.1028@TK2MSFTNGP11.phx.gbl,
>
[quoted text clipped - 55 lines]
> Mikhail Arkhipov (Microsoft)
> -- This post is provided 'AS IS' with no warranties and confers no rights
Mikhail Arkhipov (Microsoft) - 30 Dec 2005 03:41 GMT
On 12/29/05 18:03, in article ODZKqTODGHA.1268@TK2MSFTNGP12.phx.gbl,
> Yea, I know its "not supposed to" but it has been. Funny, I just went into
> Options > Text Editor > HTML and observed Tag wrapping was enabled at 80
[quoted text clipped - 109 lines]
>> Mikhail Arkhipov (Microsoft)
>> -- This post is provided 'AS IS' with no warranties and confers no rights
There is an option in Text Editor | HTML | Miscellaneous | "Format HTML On
Paste" and "Auto ID on Paste" - make sure both are off. There might be a bug
that paste code does not respect the setting - I want to know if that is so
so we can debug and fix it.
Mixed case in fine for server controls since their markup never goes to the
client. Validation code knows it is a server control so it should not
complain. ASP.NET control attribute names are often long and are barely
readable in all-lowercase.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights
clintonG - 30 Dec 2005 23:43 GMT
<snip />
> There is an option in Text Editor | HTML | Miscellaneous | "Format HTML On
> Paste" and "Auto ID on Paste" - make sure both are off. There might be a
[quoted text clipped - 12 lines]
> Mikhail Arkhipov (Microsoft)
> -- This post is provided 'AS IS' with no warranties and confers no rights
You know, last night when I responded to you I noticed Auto ID on Paste
was checked. I even mentioned it and unchecked it. Tonight I return and
read your comments which I am replying to now. I returned to Auto ID
on Paste and its checked all over again! I swear I unchecked it last night
and I saved the settings because I also unchecked Format HTML on
Paste last night and tonight is remains unchecked. Very strange behavior.
Last night I also changed the Format of Server tags from Assembly definition
to lower case but they too are reset from lower case back to Assembly
definition.
I saved, closed and restarted VS2005 and settings appear to be saved.
I'll give it time to make sure I am not misbelieving I made the changes
last night and saved them when in fact I may not have.
<%= Clinton Gallagher
Mikhail Arkhipov (Microsoft) - 30 Dec 2005 03:43 GMT
On 12/29/05 18:03, in article ODZKqTODGHA.1268@TK2MSFTNGP12.phx.gbl,
> Yea, I know its "not supposed to" but it has been. Funny, I just went into
> Options > Text Editor > HTML and observed Tag wrapping was enabled at 80
[quoted text clipped - 109 lines]
>> Mikhail Arkhipov (Microsoft)
>> -- This post is provided 'AS IS' with no warranties and confers no rights
I believe you can copy warning/error text from Error List window which you
can open via View | Error List.
Thanks
Mikhail Arkhipov (Microsoft)
-- This post is provided 'AS IS' with no warranties and confers no rights