When we copy content from Stack Overflow, it provides the whole content as a single line. It does not provide the content as it shows formatted on the screen.
Or is there any way to select the content as formatted?
UPDATE
Let me explain the specific scenario. You can copy the HTML code from here. I have copied the content in Notepad.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <HTML> <HEAD> <STYLE type="text/css"> TABLE{table-layout: automatic; width:100%} .tblHeader{background-color:RGB(192,192,192);font-weight:bold} .row1{background-color:RGB(204,204,255)} .row2{background-color:RGB(153,204,255)} </STYLE> </HEAD> <BODY> <TABLE border="1"> <THEAD> <tr class="tblHeader"> <xsl:for-each select="*/*[1]/*"> <td> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> </THEAD> <TBODY> <xsl:for-each select="ClientArray/Client"> <TR> <xsl:for-each select="*"> <TD> <xsl:value-of select="."/> </TD> </xsl:for-each> </TR> </xsl:for-each> </TBODY> </TABLE> </BODY> </HTML> </xsl:template> </xsl:stylesheet>
Another scenario:
If you copy the code and paste it into Visual Studio, it pastes all the codes in a single line. When it is one or two lines, it is OK.
Please let me know if I am doing anything wrong.
Environment
Not Working #1
- OS: Window 7
- Application: Visual Studio 3.5, Notepad
- Browser: Internet Explorer 8
Not Working #2
- OS: Window Vista
- Application: Visual Studio 3.5, Notepad
- Browser: Internet Explorer 8
I have tested the same thing in another environment, and it is working properly on the same machine. The only difference is the browser, which is Firefox (working).
It means the issue is with Internet Explorer.
Please share your thoughts.
;-)
)