Brian's Bumblings

Saturday, December 31, 2005

Posting Code

Many of the posts I will be writing will likely have code snippets contained in them so I need to find a good way to convert from code (C++, C# and others?) to html. I am looking for a good tool that emulates Visual Studio 2005's style. Any suggestions?

I am starting with Carlos Aguilar Mares' CodeColorizer. It does an ok job, but some of the colors differ from VS 2005. Here is a screen capture from VS 2005:



And the code looks like this from the CodeColorizer:

// myfirst.cpp--displays a message

#include <iostream>
int main()
{
    
using namespace std;
    
cout << "Come up and C++ me some time.\n";
    
cout << "You won't regret it!" << endl;
    return 
0;
}


We will see how this works out.

B

0 Comments:

Post a Comment

<< Home