Skip to content
Integrates the highlight.js library to provide syntax highlighting for code blocks.
JavaScript
Branch: 1.x-1.x
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
highlight.js
js
LICENSE.txt
README.md
highlightjs.info
highlightjs.module

README.md

highlight.js

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

Code blocks should be formatted like so:

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

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.

Installation

  • Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.

  • Visit the configuration page under Administration > Configuration > Content authoring > highlight.js (admin/config/content/highlightjs) to select a style.

Issues

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/highlightjs/issues.

Current Maintainers

Credits

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

License

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

You can’t perform that action at this time.