openshift-evangelists / workshopper

Workshop content rendering tool
63 stars 41 forks source link

Add syntax colouring to the renderer #18

Closed jorgemoralespou closed 7 years ago

jorgemoralespou commented 7 years ago

As we're using asciidoc, it should be possible to display code with rendering colours.

Example: image

marekjelen commented 7 years ago

The kiosk uses https://github.com/google/code-prettify/

Asciidoctor has support for highlightjs, 13d1b730aaee6de341773d1005975423596bef93 enables syntax highlighting on Asciidoctor, adds highlightjs to the project, but does not enable syntax highlighting. But the content needs to be fixed before enabling syntax highlighting, as we e.g. use source code block for quoted blocks and that makes mess.

Documentation: http://asciidoctor.org/docs/user-manual/#source-code-blocks

marekjelen commented 7 years ago

Fixed in the ruby branch, will be available once merged.