Recommended releases

Download Released

This module integrates the highlight.js library with
Backdrop, providing syntax highlighting for code blocks.

Code blocks can* be formatted like so:

<pre><code class="[LANG]">
  // Code here...

* The &lt;pre&gt; wrapper and the class attribute are optional.

The class can also be prefixed with language- or lang-. If you don't specify
a language in the class attribute, highlight.js will try to detect the language
automatically. See How to use highlight.js for
more details.


  • Install this module using the official Backdrop CMS instructions at

  • Visit the configuration page under Administration > Configuration > Content
    authoring > highlight.js (admin/config/content/highlightjs) to select a style,
    and whether your code blocks are formatted as &lt;pre&gt;&lt;code&gt; or just &lt;code&gt;.


Bugs and Feature requests should be reported in the Issue Queue:

Current Maintainers

  • Seeking maintainer(s)


highlight.js for Backdrop is not a port of Drupal's
highlight js module, though they
both integrate the highlight.js library.


This project is GPL v2 software. See the LICENSE.txt file in this directory for
complete text.