summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/cmdline.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/src/cmdline.txt b/docs/src/cmdline.txt
index 4ff74190..ce14a3fd 100644
--- a/docs/src/cmdline.txt
+++ b/docs/src/cmdline.txt
@@ -34,6 +34,7 @@ The above command could therefore also be given as::
$ pygmentize -o test.html test.py
+
Options and filters
-------------------
@@ -80,6 +81,19 @@ For an explanation what ``-a`` means for `a particular formatter`_, look for
the `arg` argument for the formatter's `get_style_defs()` method.
+Getting lexer names
+-------------------
+
+*New in Pygments 1.0.*
+
+The ``-N`` option guesses a lexer name for a given filename, so that ::
+
+ $ pygmentize -N setup.py
+
+will print out ``python``. It won't highlight anything yet. If no specific
+lexer is known for that filename, ``text`` is printed.
+
+
Getting help
------------