Trying out the new build commands. If anything fails, blame rbowen for pushing me...
authorDaniel Gruno <humbedooh@apache.org>
Tue, 24 Apr 2012 16:50:55 +0000 (16:50 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 24 Apr 2012 16:50:55 +0000 (16:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1329844 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/common.dtd
docs/manual/style/xsl/common.xsl

index 8bc6de73c649c3d71002863bbbc9be26ae8f617e..cbe71245bf8139c5c530692d3efc09d93d1b918c 100644 (file)
@@ -44,8 +44,8 @@
 <!ENTITY % inlinetags "em | strong | code | a | br | directive | module |
 program | img | cite | q | dfn | var | transnote | glossary | phonetic">
 
-<!ENTITY % blocktags "p | example | note | table | ul | ol | dl | pre
-| blockquote">
+<!ENTITY % blocktags "p | example | note | table | ul | ol | dl | pre | 
+highlight | blockquote">
 
 <!ENTITY % Block "(%blocktags;)*">
 <!ENTITY % Inline "(#PCDATA | %inlinetags;)*">
@@ -164,6 +164,10 @@ program | img | cite | q | dfn | var | transnote | glossary | phonetic">
 <!ELEMENT dd %BlockOrInline;>
 
 <!ELEMENT pre %Inline;>
+<!ATTLIST pre class CDATA #IMPLIED>
+
+<!ELEMENT highlight %Inline;>
+<!ATTLIST highlight language CDATA #IMPLIED>
 
 <!ELEMENT img EMPTY>
 <!ATTLIST img
index f75e7588f24cb762a4cd45cfc403cd8e1ce73faf..97251dcbf80012bb7be25fa7ce5b28aad3297b3d 100644 (file)
         <link title="No Sidebar - Default font size" type="text/css" media="all"
                rel="alternate stylesheet"
                href="{$path}/style/css/manual-loose-100pc.css"/>
+        
     </xsl:otherwise>
     </xsl:choose>&lf;
 
     <link type="text/css" media="print"
            rel="stylesheet"
            href="{$path}/style/css/manual-print.css"/>
-
+    <link href="{$path}/style/css/prettify.css" type="text/css" rel="stylesheet" />&lf;
+    <script type="text/javascript" src="{$path}/style/scripts/prettify.js">&lf; </script> &lf;
     <!-- chm files do not need a favicon -->
     <xsl:if test="not($is-chm or $is-zip)">&lf;
         <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
 
         <xsl:text>.</xsl:text>
     </p>&lf;
-
     <xsl:call-template name="super-menu"/>
 
 </div> <!-- /footer -->
+<script type="text/javascript">
+    if (prettyPrint) {
+        prettyPrint();
+    }
+</script>
 </xsl:template>
 <!-- /bottom -->
 
 <!-- /section/section/section/section -->
 
 
+<!-- ==================================================================== -->
+<!-- Process source code highlighting                                     -->
+<!-- ==================================================================== -->
+<xsl:template match="highlight">
+<pre class="prettyprint lang-{@language}">
+    <!-- highlight body -->
+    <xsl:apply-templates />
+</pre>&lf; <!-- /.highlight -->
+</xsl:template>
+<!-- /higlight -->
+
 <!-- ==================================================================== -->
 <!-- (sub)section titles                                                  -->
 <!-- ==================================================================== -->