Go to Post FIRSTers in particular want very strictly delineated guidelines so that they know exactly what parameters under which they're working, except when they don't. - pfreivald [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-09-2004, 20:44
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
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   Spotlight this post!  
Unread 27-09-2004, 21:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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   Spotlight this post!  
Unread 09-10-2004, 22:50
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: C++ pretty printer/source formatter/whatever

Use cygwin and indent.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #4   Spotlight this post!  
Unread 10-10-2004, 13:12
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
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?
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #5   Spotlight this post!  
Unread 10-10-2004, 13:44
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: C++ pretty printer/source formatter/whatever

I use http://www.context.cx/ a lot. It highlights C among many other languages.
  #6   Spotlight this post!  
Unread 10-10-2004, 14:50
ahecht's Avatar
ahecht ahecht is offline
'Luzer'
AKA: Zan
no team
Team Role: Alumni
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Billerica, MA
Posts: 978
ahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond reputeahecht has a reputation beyond repute
Send a message via ICQ to ahecht Send a message via AIM to ahecht Send a message via Yahoo to ahecht
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.
__________________
Zan Hecht

Scorekeeper: '05 Championship DaVinci Field/'10 WPI Regional
Co-Founder: WPI-EBOT Educational Robotics Program
Alumnus: WPI/Mass Academy Team #190
Alumnus (and founder): Oakwood Robotics Team #992


"Life is an odd numbered problem the answer isn't in the back of the book." — Anonymous WPI Student
  #7   Spotlight this post!  
Unread 15-10-2004, 15:32
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: C++ pretty printer/source formatter/whatever

Quote:
Originally Posted by ahecht
Notepad++ is another good choice, although I have not tried printing from it yet.
Anyone looking for a good source code editor and color printer should check this application out. Highly recommended.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #8   Spotlight this post!  
Unread 15-10-2004, 15:52
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
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   Spotlight this post!  
Unread 15-10-2004, 23:58
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
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.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 14:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi