Testing highlight.js

See how codes are rendered using "prism"

Ruby

    
      variable = "test"
      if variable
        # This will put the content of variable
        puts variable
        result = 1 + 3
        puts result
      end
    
  

PHP

    
      $test = "hello world";
      echo $test;
      $SomeObject = new SomeObject();
    
  

HTML

    
      <link rel="stylesheet" href="/path/to/styles/default.css">
      <script src="/path/to/highlight.min.js"></script>
      <script>hljs.initHighlightingOnLoad();</script>
    
  

Summary