Not able to format in jekyll -


can me code block (by prettify plugin) , headline seperated? googled lot didn't find solution. have written blog in jekyll , used prettify plugin highlight code. below configuration there in config.yml file

markdown: kramdown
highlighter: pygments
redcarpet:
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]

kramdown:
input: gfm
use_coderay: true
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
smart_quotes: lsquo,rsquo,ldquo,rdquo
enable_coderay: false

i not able post image please check below url .md file snippet
http://i.stack.imgur.com/yhrow.png

i expect headlines out of code block below output of blog http://i.stack.imgur.com/beqve.png

if want highlight code in jekyll, useless try 2 years old plugin.

just use hightlight tag :

{% highlight java %} import java.toto;  public class readfile {     public static void main(string[] args) throws ioexception{         string filecontents = readentirefile("./foo.txt");     }  ... many more java code here  } {% endhighlight %} 

you need style sheet. 1 can found here , more examples here.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -