Answered by:
Code blocks are annoying!

Question
-
If you write code in the post editor, then highlight it and click "Format Code Block", it gives you a bunch of HTML tags to format instead of my raw code.
E.g. if you write something like:
void Foo()
{
// Some code
}
Then highlight it and click Format Code, you get:
void Foo()<br>{<br> // Some code<br>}
in your code editor!
Arrgh.
Can we *please* just have a [code] [/code] tag and be done with it?!
Answers
All replies
-
Scorpion:
Yes, this is extremely annoying. The old forum allowed you to paste some code in the Reply window, and then select it and format it. Now (it seems) you have to first open the formatter, and then paste (or type) your code into the formatter.
Surely the new formatter should be smart enough to figure this out?
There are also some other strange features with the formatter. For example it does not see possible to remove a code block once you have created one.
David Wilkinson | Visual C++ MVP -
-
-
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, February 9, 2012 6:04 AM
- Unproposed as answer by Naomi N Thursday, February 9, 2012 1:14 PM