summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/html.js.syntax.page
blob: 72f9cc7a841a7c3a6f3fb9cea1ee234fd2e94d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0"?>
<page xmlns="http://projectmallard.org/1.0/" id="html.js.syntax" type="topic" style="xslt-template"><info><link type="guide" xref="html" group="templates"/><link type="guide" xref="templates" group="html"/><revision version="3.28" date="2016-01-03" status="final"/><desc>Output <code>script</code> elements for syntax highlighting.</desc></info><title>html.js.syntax</title><p>Output <code>script</code> elements for syntax highlighting.</p>
  
  
  <synopsis><title>Parameters</title><terms>
    <item>
      <title><code>node</code></title>
      <p>The node to create JavaScript for.</p>
    </item>
  </terms></synopsis>
  <p>This template outputs HTML <code>script</code> elements to enable syntax highlighting. It only outputs if <code style="xslt-param" xref="html.syntax.highlight">html.syntax.highlight</code> is <code>true</code>. It outputs one <code>script</code> element to load in <code>highlight.js</code>, and another to initialize <code>highlight.js</code> on all <code>code</code> elements with <code>"syntax"</code> in the class value.</p>
<list style="compact"><title>Calls Parameters</title><item><p><link xref="html.syntax.highlight"/></p></item></list></page>