HomePython softwarell.xistscriptsuhpp

ll.xist.scripts.uhpp

Script for 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.

-v, --verbose (false, no, 0, true, yes or 1)

Output parse warnings?

-c, --compact (false, no, 0, true, yes or 1)

Compact HTML before printing (i.e. remove whitespace nodes)?

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

def main​(args=None):

Alternate versions   Text   XIST   Python