1 - Copy the code from Visual Studio
2 - In your question thread, click the [code] tags button. Its the one that looks like # symbol
Code tags have magically appeared in your post with the cursor right between them.
[code]|[/code]
Just paste and you should see this
[code] public void BrokenMethod()
{
// I don't understand why this doesn't work
int Yogi = "Bear";
}[/code]
Which will look like this
Expand|Select|Wrap|Line Numbers
- public void BrokenMethod()
- {
- // I don't understand why this doesn't work
- int Yogi = "Bear";
- }