Code Syntax

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:

1 body {
2   background-color: #fff;
3   }
4 
5 h1 {
6   color: #ffaa33;
7   font-size: 1.5em;
8   }

And this is a HTML example, with a linenumber:

1 <html>
2   <a href="example.com">Example</a>
3 </html>

Last, a Ruby example:

1 def hello
2   puts "Hello World!"
3 end

blog comments powered by Disqus
Frontend frameworks
Frontend dev bookmarks