By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,434 Members | 1,878 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,434 IT Pros & Developers. It's quick & easy.

C source print utility

P: n/a
Hello,

I recall seeing in years past utilities that format C source for
printing such that vertical lines are automatically printed along the
left margin to visually emphasize the C scopes in the source code.

I have been searching Google for an hour and can't come up with one.
The closest I get is PrettyCode, which appears to do what I want, but
for VB, not C.

Can anyone recommend such a utility?

Please note that I am not looking for something like astyle to
rearrange whitespace (we already use astyle for that). I just want a
utility that will draw lines to make it easier to read and maintain
several thousand lines of code implemented in lengthy, deeply nested
functions.

Thanks.

Jim

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
jf******@aol.com wrote:
Hello,

I recall seeing in years past utilities that format C source for
printing such that vertical lines are automatically printed along the
left margin to visually emphasize the C scopes in the source code.

I have been searching Google for an hour and can't come up with one.
The closest I get is PrettyCode, which appears to do what I want, but
for VB, not C.

Can anyone recommend such a utility?

Please note that I am not looking for something like astyle to
rearrange whitespace (we already use astyle for that). I just want a
utility that will draw lines to make it easier to read and maintain
several thousand lines of code implemented in lengthy, deeply nested
functions.

Thanks.

Jim


I've always used SciTe to do it:

www.scintilla.org/SciTE.html

It's really a code editor with folding capability. The pretty printing
is really just a side effect. But configuring the app means editing
config files, no nice GUI. Then again, that's a small price to pay for
all the nice features it has. And I prefer config files anyway, you
can't search a GUI.

The main distribution doesn't come with an installer. It's simply a zip
archive. If you're on Windows I'd recommend the installer distribution
by Bruce Dodson.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.