uhpp – Pretty printing HTML

Purpose

uhpp is a script for pretty printing HTML files. It is URL-enabled, so you can specify local file names and URLs (and remote files via ssh URLs).

Options

uhpp supports the following options:

urls

Zero or more URLs to be printed. If no URL is given, stdin is read.

-c <flag>, --compact <flag>

Compact HTML before printing (i.e. remove whitespace nodes)? (Allowed valued are false, no, 0, true, yes or 1)

Examples

Pretty print stdin:

$ cat foo.html | uhpp

Pretty print a local HTML file:

$ uhpp foo.html

Pretty print a remote HTML file:

$ uhpp ssh://user@www.example.org/~/foo.html