diff options
author | gbrandl <devnull@localhost> | 2007-01-25 18:58:20 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-25 18:58:20 +0100 |
commit | 7e3009c2fc5e6ff04396dbd91a8894c5f442bd85 (patch) | |
tree | 17ff427079feeb4608f24895a8cd2a3697b82819 /docs/src | |
parent | c40c9322046cd975f754405efb6cbef970b2293e (diff) | |
download | pygments-7e3009c2fc5e6ff04396dbd91a8894c5f442bd85.tar.gz |
[svn] Allow dropping style files into the styles subpackage.
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/styles.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/src/styles.txt b/docs/src/styles.txt index f37b0b7c..d6ba8bd0 100644 --- a/docs/src/styles.txt +++ b/docs/src/styles.txt @@ -66,11 +66,21 @@ they can be used for a variety of formatters.) `default_style` is the style inherited by all token types. +To make the style usable for Pygments, you must + +* either register it as a plugin (see `the plugin docs <plugins.txt>`) +* or drop it into the `styles` subpackage of your Pygments distribution one style + class per style, where the file name is the style name and the class name is + `StylenameClass`. For example, if your style should be called + ``"mondrian"``, name the class `MondrianStyle`, put it into the file + ``mondrian.py`` and this file into the ``pygments.styles`` subpackage + directory. + Style Rules =========== -Here a small overview over all allowed styles: +Here a small overview of all allowed styles: ``bold`` render text as bold |