Code Highlighting
Material in Tags: HugoSyntax Highlighting Tryout
Notes:
switch off javascript that adds bootstrap styles to tables in frontmatter:
NoStripedTables: true
many styles available, they can either be set in config (see markup.toml) or with the setting
noClasses=false
via stylesheets. seesyntax-xxx.scss
Chroma 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"