Abstract: 解决markdown代码上传到github上不高亮的问题。

Syntax

1
2
3
{% codeblock [lang:language] [title] [url] [link text] %}
code snippet
{% endcodeblock %}

Example

Javascript Array SyntaxMDN Documentation
1
2
var arr1 = new Array(arrayLength);
var arr2 = new Array(element0, element1, ..., elementN);
1
2
3
4
5
6
7
8
9
a='foo';

print(a);

#python dictionary
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print "dict['Name']: ", dict['Name']
print "dict['Age']: ", dict['Age']

1
SELECT column_name FROM information_schema.columns WHERE table_name='content';
1
2
3
4
5
6
7
8

<?php
$cars = array("Volvo", "BMW", "Toyota");
echo $cars[0]; //输出"Volvo"
echo $cars[1]; //输出"BMW"
echo $cars[2]; //输出"Toyota"
?>

1
2
3
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print "dict['Name']: ", dict['Name']
print "dict['Age']: ", dict['Age']