Answered by:
format tool defective

Question
-
I just created this post in the sandbox:
http://forums.msdn.microsoft.com/en-US/msdnsandbox/thread/b0babad7-33c6-4275-a58d-7cd32e61d262
When I selected a code segment to format, the display shows the HTML code and does not interpert it. The code block is unreadable.
What the heck, do it here:
Here is the original:
void CGalactic_Body_Editor::OnBnClickedOk()
{ GB_color_combo_string.GetWindowTextW( str );}
<P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">void</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> CGalactic_Body_Editor::OnBnClickedOk()</SPAN></P> <P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">{ GB_color_combo_string.GetWindowTextW( str );}</SPAN></P>
Above is with the XML default option.<P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">void</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> CGalactic_Body_Editor::OnBnClickedOk()</SPAN></P> <P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">{ GB_color_combo_string.GetWindowTextW( str );}</SPAN></P> <P style="MARGIN: 0in 0in 0pt"><BR> </P>
above is with C#, no better.
~jag77
Answers
-
Avoid pasting the code into your message, selecting it, then clicking the "Format code block" button. Only paste it in the popup that appears when you click the button.
Hans Passant.- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, February 9, 2012 6:23 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Thursday, February 16, 2012 7:06 PM
-
I will try it. Open a format window, the paste in.
void CGalactic_Body_Editor::OnBnClickedOk() { GB_color_combo_string.GetWindowTextW( str );} // Edit some more text in after closing that window and returning to the main
// post/reply window.
// and two more lines so make it grow
// looking ok.
// and a paste.void CGalactic_Body_Editor::OnBnClickedOk() { GB_color_combo_string.GetWindowTextW( str );}
Okay, that looks much better. A viable work around.
Thanks for the information.
~jag77- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, February 9, 2012 6:24 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Thursday, February 16, 2012 7:06 PM
All replies
-
-
-
-
Avoid pasting the code into your message, selecting it, then clicking the "Format code block" button. Only paste it in the popup that appears when you click the button.
Hans Passant.- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, February 9, 2012 6:23 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Thursday, February 16, 2012 7:06 PM
-
-
I will try it. Open a format window, the paste in.
void CGalactic_Body_Editor::OnBnClickedOk() { GB_color_combo_string.GetWindowTextW( str );} // Edit some more text in after closing that window and returning to the main
// post/reply window.
// and two more lines so make it grow
// looking ok.
// and a paste.void CGalactic_Body_Editor::OnBnClickedOk() { GB_color_combo_string.GetWindowTextW( str );}
Okay, that looks much better. A viable work around.
Thanks for the information.
~jag77- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, February 9, 2012 6:24 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Thursday, February 16, 2012 7:06 PM