Add client side syntax highlighting support
Added client side syntax highlighting support in addition to existing server side syntax highlighting support. Updated readme and sample to reflect both types of highlighting.
This commit is contained in:
parent
2f1a27dc95
commit
938766f54f
7 changed files with 36 additions and 4 deletions
12
README.md
12
README.md
|
|
@ -18,11 +18,21 @@ This theme is designed to look great on both large-screen and small-screen (mobi
|
|||
|
||||
### Syntax highlighting
|
||||
|
||||
This theme has support for `highlight` shortcode (with Pygments),
|
||||
This theme has support for both server side and client side highlighting.
|
||||
|
||||
#### Server side syntax highlighting
|
||||
|
||||
Use the `highlight` shortcode (with Pygments),
|
||||
see [the Hugo documentation](http://gohugo.io/extras/highlighting/) for more information.
|
||||
|
||||
To use this feature install Pygments (`pip install Pygments`) and add `pygmentsuseclasses = true` to your `config.toml`.
|
||||
|
||||
#### Client side syntax highlighting
|
||||
|
||||
Use triple backticks "```" or triple tilde "~~~" around code blocks.
|
||||
|
||||
Client side highlighting does not require pygments to be installed.
|
||||
|
||||
### Disqus support
|
||||
|
||||
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue