|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
C++ pretty printer/source formatter/whatever
I seem to be whiney lately...
![]() Anyone know of a free, good, C++ pretty printer/source formatter/what-you-may-call-it? Preferably Windows binaries, but if I can compile it for Windows without anymore hassle than changing the compiler used in the Makefile, then I'm ok with that. ![]() And while you're at it, know of a lint type program for Windows? Free, obviously. |
|
#2
|
||||||
|
||||||
|
Re: C++ pretty printer/source formatter/whatever
What do you mean by a pretty printer/source formater? Do you want something to clean up different coding styles (like gnu indent), or something to include linenumbers/formatting when printing?
I used trueprint to pretty print the code of my senior design project. I had my makefile call it when I called "make documentation". it then ran ps2pdf on the output, and I had pdfs of my code pretty printed, and I could print them anywhere. the make documentation also called doxygen to produce documentation in html and latex (with the latex output also being converted to pdf). indent is availible in cygwin. I don't know about trueprint, but the full postscript powers are probably lost on windows. Last edited by Joe Ross : 27-09-2004 at 21:41. |
|
#3
|
|||
|
|||
|
Re: C++ pretty printer/source formatter/whatever
Use cygwin and indent.
|
|
#4
|
|||||
|
|||||
|
Re: C++ pretty printer/source formatter/whatever
I'm looking for a program that prints (as in, to the printer) color coded C (like what you see in the IDE). Anyone know of any for Windows?
|
|
#5
|
||||
|
||||
|
Re: C++ pretty printer/source formatter/whatever
I use http://www.context.cx/ a lot. It highlights C among many other languages.
|
|
#6
|
|||||
|
|||||
|
Re: C++ pretty printer/source formatter/whatever
Okay, so what you are looking for is a syntax highlighter. A google search will turn up dozens, but the one I use is called Syntax, which is nice because it outputs HTML.
Notepad++ is another good choice, although I have not tried printing from it yet. |
|
#7
|
|||||
|
|||||
|
Re: C++ pretty printer/source formatter/whatever
Quote:
|
|
#8
|
||||
|
||||
|
Re: C++ pretty printer/source formatter/whatever
Eclipse is a free Java-based IDE project started by IBM. It's designed for adaptability to just about any language.
Also, Bloodshed Software has an C++ and Pascal IDE with compiler, among other various free stuff. |
|
#9
|
|||||
|
|||||
|
Re: C++ pretty printer/source formatter/whatever
Not to start any more wars... but www.vim.org does a very good job too. It can export your code as a colored HTML file, then do what you want with that.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FAHA mailbox: I Got Something To Say And It Ain't Pretty | SilenceNoMore | General Forum | 12 | 20-04-2004 00:50 |
| Pretty Cold... | Pin Man | Chit-Chat | 31 | 16-01-2004 15:52 |
| please help us, pretty please :) | archiver | 2001 | 0 | 24-06-2002 03:13 |
| Pretty Lights... | archiver | 2001 | 1 | 24-06-2002 02:17 |
| Some FIRST Humor...This is pretty funny stuff. | archiver | 2000 | 1 | 23-06-2002 22:40 |