Active Forums will automatically format code for you similar to what you see in Visual Studio. All you need to do is wrap your code with <code> </code> tags and it will format everything in between. Quick Reply actually works best for handling code formatting.