If the "page" you are linking to is a Markdown file, that is, the extension is .md or .markdown, then you will want to use the standard Markdown syntax:
For inline code use backlinks, for example: `inline code`
For block code specify each line with 4 spaces:
block of code
Jekyll uses a Markdown analyzer such as RedCarpet, Maruku or RDiscount, and does not determine how you should format your content, which is determined by the type of content you write, in this case Markdown. So, the place to look is Markdown's syntax documentation for code :
http://daringfireball.net/projects/markdown/syntax#code
You can also see syntax highlighting using the {% highlight %} Liquid syntax tag:
https://github.com/mojombo/jekyll/wiki/Liquid-Extensions#code-highlighting
Hope this helps!
Jw
source share