views:

267

answers:

5

Does anyone know of a script to colorize C++ code the same as the default MSVC IDE does?

+2  A: 

Is SyntaxHighlighter the sort of thing you're looking for? There is also GeSHi, which has been updated more recently.

Greg Hewgill
+5  A: 

If it's for the web I can recommend you prettify, it's the script that StackOverflow uses for code colorization, and it's really easy to get it working...

CMS
+1  A: 

Try the open source project Highlight.

It's not a script-per-se -- but it is scriptable. The nice thing is that it parses code and the style-sheet is very easy to customize colors, bold and italics, etc....

Uhall
A: 

The in-browser http://tohtml.com/ syntax hilighter is pretty good, depending on what you're doing.

Matt Campbell
A: 

Notepad++ is pretty good and I use it when I'm on a windows system and doing C++.

Here is the title off the sourceforge page: Notepad++ is a generic source code editor (it tries to be anyway) and Notepad replacement written in c++ with win32 API. The aim of Notepad++ is to offer a slim and efficient binary with a totally customizable GUI.

http://sourceforge.net/projects/notepad-plus/

Bob