Code Highlighting
Material in Tags: HugoSyntax Highlighting Tryout
Notes:
switch off javascript that adds bootstrap styles to tables in frontmatter:
NoStripedTables: truemany styles available, they can either be set in config (see markup.toml) or with the setting
noClasses=falsevia stylesheets. seesyntax-xxx.scssChroma Styles:
Example from page:
| |
Without anything
$ ls -lart
Bash
| |
| |
style = ‘monokai’
Java with highlight shortcode
| |
Java with code fences
| |
Java with explicit style - does not work
Tried both settings for noClasses=true|false
| |
Python
def cy:
print "hallo"
