-
-
Notifications
You must be signed in to change notification settings - Fork 332
Code Highlight
Alexandre Vicenzi edited this page Nov 16, 2016
·
9 revisions
Flex uses Pygments for code highlight and has a lot of styles ready for use. You just need to pickup some of:
- algol
- algol_nu
- autumn
- borland
- bw
- colorful
- default
- emacs
- friendly
- fruity
- github
- igor
- lovelace
- manni
- monokai
- murphy
- native
- paraiso-dark
- paraiso-light
- pastie
- perldoc
- rrt
- tango
- trac
- vim
- vs
- xcode
PYGMENTS_STYLE = 'monokai'
You can see how most of this styles looks like at Pygments Demo.
Except for github
all other styles are built in from Pygments. If you want to add a new one, you need to find a Python package that is what you want or you can create your own.
After this, you can run the tool inside Flex to generate all Pygments CSSs. After this just run gulp pygments
.