Before using the PrettyPrinter, your HTML looks like me (in other words, scruffy)... |
Welcome to the HTML PrettyPrinter. Inspired by tools I first used 20 years ago to make my demented hackery readable to the long-suffering teaching assistants at Cornell University 1 who had the extremely dubious honor of grading my computer-science projects, this utility helps you read and debug HTML pages, particularly those with complex table structures, by reformatting the HTML so that it is much easier to understand the structural relationships. | ...but after using the PrettyPrinter, your HTML will look like my wonderful youngest son, Alexander Ryuusei Ueki. (Alexander is expressing his opinion of dinner, not of your code!) |
Enter your HTML in the form below, click on the Beautify button, and it will be magically transformed into a hopefully more readable form. Most of the important structural tags (those in the form <tag> ... </tag>) will cause indenting and exdenting. Some tags (such as FORM and TABLE) will generate vertical lineup marks to help you find the start and end of the structures. Finally, table structures are parsed for correctness.
Notes:
The PrettyPrinter is written entirely in Websiphon by Purity Software, the coolest active HTML solution in the known universe. It took about 3 hours to design, code, and debug3. Copyright (C) 1997 by Robert J. Woodhead. All Rights Reserved. Comments, suggestions and small unmarked bills4 gratefully accepted. You can even see and copy the source code and see other weird things I've done!
1) The Cornell University Fight Song:High above Cayuga's waters, there's an awful smell.
Some say it's Cayuga's waters, we know it's Cornell!2) My first experience with the joys of stack-based parsers with marginal error recovery was when working on a Data General minicomputer around 1980 at the Cornell Hotel School. They had this wonderful language called MOBOL that was "optimized" for hotel applications. It was based on a macro-expansion package, and recursively macro-expanded MOBOL source all the way down to assembly language. A brilliant hack, except that a single character out of place in a MOBOL program generated 37 pages of recursive error messages, none of which had any bearing on the original error! We called it "MOBOL, Language of Kings" because if you understood it, you had the power of life and death over the entire Hotel. Needless to say, the prof who installed it was extremely bright; was the only guy who really understood it; and got tenure extremely quickly.
3) And another 5 hours writing these cute comments, of course.