To insert highlight code inside of a post, it’s enough to use some specific tags, has directly described into the Jekyll documentation. In this way the code will be included into a
.highlight CSS class and will be highlight according to the syntax.scss file. This is the standard style adopted by Github to highlight the code.
This is a CSS example:
And this is a HTML example, with a linenumber:
Last, a Ruby example:
puts "Hello World!"