diff options
author | gbrandl <devnull@localhost> | 2007-01-17 21:52:05 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-17 21:52:05 +0100 |
commit | 48588688b32b374c7edeee945336cc83eaa38a74 (patch) | |
tree | 4910f86aac1505c8b2e1c28daa435ebe75138554 | |
parent | df9ce85d7a6553f22d808c299b85109088b2ba3b (diff) | |
download | pygments-48588688b32b374c7edeee945336cc83eaa38a74.tar.gz |
[svn] Some clarification in quickstart.
-rw-r--r-- | docs/src/quickstart.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/src/quickstart.txt b/docs/src/quickstart.txt index 0d9a62bc..91e0953f 100644 --- a/docs/src/quickstart.txt +++ b/docs/src/quickstart.txt @@ -7,8 +7,8 @@ Quickstart Pygments comes with a wide range of lexers for modern languages which are all accessible through the pygments.lexers package. A lexer enables Pygments to -parse the source code into tokens which are passed to a formatter. Currently -formatters exist for HTML, LaTeX and ANSI sequences. +parse the source code into tokens which then are passed to a formatter. Currently +formatters exist for HTML, LaTeX, RTF and ANSI sequences. Example @@ -33,15 +33,17 @@ which prints something like this: <pre><span class="k">print</span> <span class="s">"Hello World"</span></pre> </div> - -A CSS stylesheet which contains all CSS classes possibly used in the output can be -produced by: +As you can see, Pygments uses CSS classes (by default, but you can change that) +instead of inline styles in order to avoid outputting redundant style information over +and over. A CSS stylesheet that contains all CSS classes possibly used in the output +can be produced by: .. sourcecode:: python print HtmlFormatter().get_style_defs('.highlight') -The argument is used as an additional CSS selector: the output may look like +The argument to `get_style_defs` is used as an additional CSS selector: the output +may look like this: .. sourcecode:: css |