From 9d5fff7dba42d03d4f6f94d40139cf3dd91c3c52 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 31 Dec 2022 23:09:14 +0100 Subject: Update README --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 49de246..3216fab 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,12 @@ pip install -r requirements.txt ### Usage ``` -usage: html_diff.py [-h] [-b] [-s SYNTAX_CSS] [-t PAGETITLE] [-o OUTPUT] [--header] [--content] old new +usage: html_diff.py [-h] [-b] [-s SYNTAX_CSS] [-l LEXER] [-L] [-t PAGETITLE] + [-o OUTPUT] [--header] [--content] + [old] [new] -Given two source files or directories this applicationcreates an html page which highlights the differences between the two. +Given two source files or directories this application creates an html page +that highlights the differences between the two. positional arguments: old source file or directory to compare ("before" file) @@ -23,12 +26,18 @@ options: -h, --help show this help message and exit -b, --open Open output file in a browser -s SYNTAX_CSS, --syntax-css SYNTAX_CSS - Path to custom Pygments CSS file for code syntax highlighting + Path to custom Pygments CSS file for code syntax + highlighting + -l LEXER, --lexer LEXER + Manually select pygments lexer (default: guess from + filename, use -L to list available lexers.) + -L, --list-lexers List available lexers for -l/--lexer -t PAGETITLE, --pagetitle PAGETITLE Override page title of output HTML file -o OUTPUT, --output OUTPUT Name of output file (default: stdout) - --header Only output HTML header with stylesheets and stuff, and no diff + --header Only output HTML header with stylesheets and stuff, + and no diff --content Only output HTML content, without header ``` ### Example Output -- cgit