View Single Post
  #2 (permalink)  
Old June 20th, 2009, 05:44 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Jim,

Does this also include the lost spaces in color coded code in code blocks? When you copy from Visual Studio, paste in the editor and wrap it in a code block, all spaces are lost; not just the indenting. This not only makes the code illegible, but also corrupts it. For example, the following code is messed up:
Code:
<asp:LoginID="Login1"runat="server"CssClass="SomeClass"CreateUserUrl="SomePage.aspx">
<LoginButtonStyleBackColor="Green"/>
</asp:Login>
Removing the color coding using the "Remove Text Formatting" button fixes the problem:
Code:
<asp:Login ID="Login1" runat="server" CssClass="SomeClass" CreateUserUrl="SomePage.aspx">
<LoginButtonStyle BackColor="Green" />
</asp:Login>
Notice how the first block has no spaces between the various attributes and values.

Is this being fixed and tested as well?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!