Code Blocks in Markdown

This is a sample page for checking how does code highlight work in markdown :)


(function(){
  var x = 13;

  var double = function (nr) {
    if(nr && typeof(nr) === 'Number') {
      return 2 * nr;
    }
    return x;
  };
})();

This was some awesome JS code add for multiple lines.

Below you can see some python code:


class Math

  def double(self, nr):
    if nr is not None:
      return 2 * nr

    return 13