taoti/highlightjs

This package is abandoned and no longer maintained. No replacement package was suggested.

A drupal module to allow syntax highlighting of content.

Installs: 153

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-module

8.0.x-dev 2016-01-08 14:52 UTC

This package is auto-updated.

Last update: 2019-02-20 18:49:42 UTC


README

Configuration

Check the file ./js/highlightjsInit.js in order to change selectors. Currently hilighting every <code></code> tag.

Change 'code' in the following line to your selector.

 $('code', context) ...

Highlightjs defaults is: <pre><code></code></pre>.

Which would result:

 $('pre code', context) ...

Libraries in this module are loaded from cdnjs.cloudflare.com See: ./highlightjs.libraries.yml

Read more

https://highlightjs.org/usage/

http://highlightjs.readthedocs.org/en/latest/