Name

$v:highlight-js-head-elements — CSS and JavaScript to support highlight.js.

Variable:
{http://docbook.org/ns/docbook/variables}highlight-js-head-elements
Defined in:
modules/variable.xsl
Used in:
modules/head.xsl

Synopsis

 
<xsl:variable name="v:highlight-js-head-elements"
              as="element()*">
   <link rel="stylesheet"
         href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/default.min.css"/>
   <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js"/>
   <script>hljs.initHighlightingOnLoad();</script>
</xsl:variable>

Description

If the highlight.js syntax highlighter is selected (see $verbatim-syntax-highlighter), these elements are added to the head element to load and configure the highlighter.