Skip to content

gbraad/tomorrow-pygments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Pygments - Tomorrow Theme Styles

Pygments style classes for the popular 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.css

Output:

.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.css

Output:

.parent-class .hll { background-color: #373b41 }
.parent-class  { background: #1d1f21; color: #c5c8c6 }
.parent-class .c { color: #969896 } /* Comment */
...

About

Pygments style classes for the popular Tomorrow Theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%