uhpp – Pretty printing HTML


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).


uhpp supports the following options:


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)


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