This tool generates the HTML code you need to put on a web page in order to get C# & XNA code formatting.
It does not use any CSS or external reference, you just need to copy/paste it in an HTML file and that's it.

I made it in order to add sample code more easily on XNA Meeting Point, and I thought it might be of use to other people as well.
I continue to update it regularly, in order to add more functionality to it.
If you find any issue with it, send me an email at xnameetingpoint(at)gmail(dot)com or use a contact form over at XNA Meeting Point.

Please, type your code in the form below and click 'Submit' to see the result below:

Type your code below:

Start numeration at: Choose border width:

Do you wish to alternate line colors?
Yes
No

Choose the text size :
small
medium
large
other :

Do you want line numbers?
Yes
No

Does the class containing this code inherit from:
None
Microsoft.Xna.Framework.Game
Microsoft.Xna.Framework.GameComponent
Microsoft.Xna.Framework.DrawableGameComponent

Did you define custom types? If so, specify their names:

* Use spaces to seperate them.

Did you define instances using class names? If so, specify their names:

* Use spaces to seperate them.

Do you want to add scroll bars?
Yes
No

I hope you find it useful!