plugins of code highlighting

Code Highlight by using “Code Block”

display effect

intital example
1
2
3
4
5
6
initial begin
    clkn_rstn   = 0;
    repeat(10)@(posedge clkn);
    #1;
    clkn_rstn   = 1;
end

source

Code Block Syntax
1
2
3
4
5
6
7
8
{% codeblock lang:verilog intital example %}
initial begin
    clkn_rstn   = 0;
    repeat(10)@(posedge clkn);
    #1;
    clkn_rstn   = 1;
end
{% endcodeblock %}

Code Highlight by using “Backtick Code Blocks”

display effect

1
2
3
4
5
6
initial begin
    clkn_rstn   = 0;
    repeat(10)@(posedge clkn);
    #1;
    clkn_rstn   = 1;
end

source

Backtick Code Blocks Syntax
1
2
3
4
5
6
7
8
``` verilog
  initial begin
      clkn_rstn   = 0;
      repeat(10)@(posedge clkn);
      #1;
      clkn_rstn   = 1;
  end  
```

The source parts are displayed by {% raw %} and
{% endraw %} which escape liquid tags.

Liquid Escape Syntax in codeblock
1
2
3
4
5
{% codeblock %}
{% raw %}
some code here
{% endraw %}
{% endcodeblock %}

Liquid Escape Syntax inline
1
2
3
{{ "{% this is your liquid syntax and not bein processed by octopress. It will show in your post as a source code." }}%} 
or `{{ "{% raw " }}%}` 
or `{{ "{% endraw " }}%}`