Hello world syntax highlighter

Syntax highlighting is now avalible on Nightlight v2+. The libaray used is http://prismjs.com. PrismJS is a lightweight, extensible syntax highlighter, built with modern web standards in mind. alternative themes are avaible. Your code never looked so pretty! Below shows an example of what can be done.

<!DOCTYPE html>  
<html>  
  <head>
    <style>
    body {
        background-color: #d0e4fe;
    }
    h1 {
        color: orange;
        text-align: center;
    }

    p {
        font-family: "arial";
        font-size: 20px;
    }
    </style>
  </head>
  <body>
      <h1>Hello World!</h1>
      <p id="demo">My first paragraph.</p>
      <button type="button" onclick="myFunction()">
          Click me.
      </button>
  </body>
</html>  

function myFunction() {  
    var s = "My First JavaScript Function";
    document.getElementById("demo").innerHTML = ;
}

Languages

Note not all lanaguages are installed with Nightlight. You can easily customise your script at theprismJS website.
  • Markup
  • Twig
  • CSS
  • CSS Extra
  • C-like
  • JavaScript
  • Java
  • PHP
  • PHP Extra
  • CoffeeScript
  • Sass (Scss)
  • Bash
  • C
  • C++
  • Python
  • SQL
  • Groovy
  • HTTP
  • Ruby
  • Rip
  • Gherkin
  • C#
  • Go
  • NSIS
  • ASP.NET
  • Scala
  • Haskell
  • Swift
  • Objective-C
  • AutoHotkey
  • Ini
  • LaTeX
  • Apache Configuration
  • Git
  • Scheme