Highlightjs Module: example usage

The Highlightjs Drupal module is installed on this website to allow presentation of javascript and other examples with syntax highlighting.
 
use strict;
var myWelcomeMsg = "Hello Javascript Universe";

Reference:

 


Usage
Use <code> to output code in a given language. In this case the library will try to detect the language automatically.

 

OR

Use <code lang="css"> to output code in a given language.

To disable highlighting of a fragment altogether use "no-highlight" class.
<code class="no-highlight">


 

Available languages for highlighting on this website:
 

Language: