The Best C/C++ Pretty Printer Plug-In - Publish Your Code Using This Speedster
Coding is not over till you publish your code. Unless you make your code as easy to read as a novel for future maintenance purposes, by you, or by someone else, the work is not done. You need to get this far before you can wrap up your work. Alternatively, your code is not meant to be used further, so its demonstration is all that you need to carry out and what better than a publication, to your conference or journal or teacher, to do that? Publishing can well become a regular coding activity -- publish your intermediate results, for your team's review, before plunging into further coding.
So how exactly do you go about the business of publication, to a page, figure, or column, of a specific width or size? Remember, this is a publication, to paper, or Amazon Kindle, etc., so scrolling horizontally, left and right, is not an option for long lines. Scrolling (similarly wraparound) is of course a very tedious (ugly) option, so you really don't want to have that in your publication anyway. Truncated long lines is not an option either, that destroys your code. Whitespace gaps in lines, procedures are best avoided, or at least standardized for the publication, as are under-filled lines so that a compact novel is produced. So how do you really get around to the business of making your publication? Well, you sit down, and hack. You hack the long lines, irregular whitespaces away till something useful and printable appears. TEDIOUS, is it not? AND, this perpetually runs the risk of a typing error destroying the perfection of your code.
So the state of the art is pathetic, is it not? There is no support for publishing code that you're aware of. Welcome, now, to Macro Magic® Lens, the world's best pretty printer, designed specifically for publishing your code, besides standardizing indentations etc. You can now ZOOM your code, by publishing it using Lens, to any rectangular device, big or small, of your choice. Lens will zoom in or zoom out as necessary to fit your code to the device. You can fit to the specific page or column or figure size that your device is comprised of. Simply pretty print an entire translation unit and your publication files emerge, error-free, almost instantaneously. If instead of publication, simple eye relief, was the objective, (viewing code on a larger screen as you program), then just continue your coding, paginated to your chosen size, from the pretty print onwards.
Buff 'N' Staff® Macro Magic® Lens is the only pretty printer in the world that can optionally and intelligently break or move all lexical types, e.g. C++'s raw-string literals, and not just whitespace, to deliver your code, semantics and correctness preserved, to any device/display that you specify in terms of number of characters per line and number of lines per page. Lens will magnify or zoom down your code, to the best view for your eyes, for a larger printing/display page or narrower. Lens will intelligently optimize. It will pack the code to the page size asked for, using the looseness, linearization or style parameters that you or your teacher specify, or automatically.
In paginating optimally, both the width and height of the page are taken into account, to be able to insert or delete whitespace to pack the code, scoping and indentation respected, best, to a page. Instead of breaking a lexical scope randomly, intelligent decisions are made involving code movement that best present the code visually. So for example when you choose to linearize code, scopes are not broken and presented on one line apiece whenever possible, to fill out a partially empty page. The decision-making of Lens is global -- the entire translation unit is optimized, making indentation and scoping decisions uniformly across the variety of C/C++ punctuators that may be present in: (a) conditionally-compiled regions, (b) conditionally-uncompiled regions, (c) directives, (d) non directives, (e) macro expanded codes, (f) non-macro expanded codes, and (g) macro invocations. You can thus use Lens for code refactoring also, to improve code readability, even if you don't wish to transfer the code.
Finally, pretty printing is artwork. Compare our rendering of your code with the best competitors out there, even for the mundane, non-novel-making pretty prints they render. For example, compare our indentation of expressions, sub-expressions, statements, sub-statements, declarations and sub-declarations in a variety of contexts. Check out the many pretty printing examples that come with the V1.1 Final version that showcase our unique code compaction/zooming and artful pretty printing very precisely. Choose us if you find us better. And do tell a friend!