Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozmorris/tomorrow-pygments
Pygments style classes for the popular Tomorrow Theme
https://github.com/mozmorris/tomorrow-pygments
Last synced: 2 months ago
JSON representation
Pygments style classes for the popular Tomorrow Theme
- Host: GitHub
- URL: https://github.com/mozmorris/tomorrow-pygments
- Owner: mozmorris
- Created: 2013-01-13T22:23:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-13T23:06:56.000Z (almost 12 years ago)
- Last Synced: 2024-08-09T14:02:21.279Z (5 months ago)
- Language: Python
- Size: 103 KB
- Stars: 56
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pygments - Tomorrow Theme Styles
Pygments style classes for the popular [Tomorrow Theme](https://github.com/chriskempson/tomorrow-theme).
## Installation
Copy the contents of the `styles` folder to your Pygments styles folder.
cp styles/* /path/to/your/pygments/styles/
## Generating CSS
Run the `pygmentize` command:
`pygmentize -f html -S [style] -a .class-name > output.css`
The options are:
`-f html` - html formatter.
`-S [style]` - generate style definitions, where `[style]` is the Pygments style class.
`-a .class-name` - prepend the defintions with a parent CSS class.### Example 1 - Tomorrow
pygmentize -f html -S tomorrow -a .highlight > tomorrow.cssOutput:
.highlight .hll { background-color: #d6d6d6 }
.highlight { background: #ffffff; color: #4d4d4c }
.highlight .c { color: #8e908c } /* Comment */
.highlight .err { color: #c82829 } /* Error */
...### Example 2 - Tomorrow Night
pygmentize -f html -S tomorrownight -a .parent-class > tomorrow_night.cssOutput:
.parent-class .hll { background-color: #373b41 }
.parent-class { background: #1d1f21; color: #c5c8c6 }
.parent-class .c { color: #969896 } /* Comment */
...