diff options
author | Mariano Guerra <[email protected]> | 2016-10-21 21:22:52 +0100 |
---|---|---|
committer | Mariano Guerra <[email protected]> | 2017-03-13 11:51:52 +0100 |
commit | 2887ebb0cd748f60cfe410f414ad27acfc7a3cb5 (patch) | |
tree | 4b1caa1e7aebada7aead827599b3ef80dab148cd /lib/erl_docgen/priv/xsl/db_html.xsl | |
parent | 1f0689526a75e776bb4486da55cd48cb2e2efb15 (diff) | |
download | otp-2887ebb0cd748f60cfe410f414ad27acfc7a3cb5.tar.gz otp-2887ebb0cd748f60cfe410f414ad27acfc7a3cb5.tar.bz2 otp-2887ebb0cd748f60cfe410f414ad27acfc7a3cb5.zip |
add progressive enhanced syntax highlighter
it loads a script at the end of the page that loads the required
resources and initializes the syntax highlighter.
if js is disabled or blocked nothing happens, the code blocks will
display with the style they had until now
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_html.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index 91d830a667..a9f7ff9e5f 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -659,7 +659,7 @@ </xsl:otherwise> </xsl:choose> </head> - <body bgcolor="white" text="#000000" link="#0000ff" vlink="#ff00ff" alink="#ff0000"> + <body> <div id="container"> <script id="js" type="text/javascript" language="JavaScript" src="{$topdocdir}/js/flipmenu/flipmenu.js"/> @@ -734,6 +734,8 @@ </div> </div> + <script type="text/javascript"><xsl:text>window.__otpTopDocDir = '</xsl:text><xsl:value-of select="$topdocdir"/><xsl:text>/js/';</xsl:text></script> + <script type="text/javascript" src="{$topdocdir}/js/highlight.js"/> </body> </html> </xsl:template> |