Code and Syntax Highlighting

Here you will learn code syntax in Markdown.

Code Blocks

You can make a code block by using the following format:

Syntax Highlighting in Code Blocks

Use the following format in order to obtain appropriate syntax when writing code:

{% highlight javascript %}  
var s = "JavaScript syntax highlighting";  
alert(s);  
{% endhighlight %}

{% highlight python %}  
s = "Python syntax highlighting"  
print s  
{% endhighlight %}

Results:

var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting" 
print s
 

Comments for Code and Syntax Highlighting

Comments loading please wait.

Unfortunately if this is an https site comments will not load. Please change to use http for comments to load. in the future we plan to support https comments too.