httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1329881 - in /httpd/httpd/branches/2.2.x/docs/manual/style: common.dtd xsl/common.xsl
Date Tue, 24 Apr 2012 17:36:13 GMT
Author: humbedooh
Date: Tue Apr 24 17:36:13 2012
New Revision: 1329881

URL: http://svn.apache.org/viewvc?rev=1329881&view=rev
Log:
Committing style changes to 2.2 as well

Modified:
    httpd/httpd/branches/2.2.x/docs/manual/style/common.dtd
    httpd/httpd/branches/2.2.x/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/branches/2.2.x/docs/manual/style/common.dtd
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/style/common.dtd?rev=1329881&r1=1329880&r2=1329881&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/style/common.dtd (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/style/common.dtd Tue Apr 24 17:36:13 2012
@@ -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 | t
 <!ELEMENT dd %BlockOrInline;>
 
 <!ELEMENT pre %Inline;>
+<!ATTLIST pre class CDATA #IMPLIED>
+
+<!ELEMENT highlight %Inline;>
+<!ATTLIST highlight language CDATA #IMPLIED>
 
 <!ELEMENT img EMPTY>
 <!ATTLIST img

Modified: httpd/httpd/branches/2.2.x/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/style/xsl/common.xsl?rev=1329881&r1=1329880&r2=1329881&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/style/xsl/common.xsl Tue Apr 24 17:36:13 2012
@@ -161,13 +161,15 @@
         <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" />
@@ -307,10 +309,14 @@
 
         <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 -->
 
@@ -469,6 +475,17 @@
 
 
 <!-- ==================================================================== -->
+<!-- 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                                                  -->
 <!-- ==================================================================== -->
 <xsl:template match="section/title" mode="print">



Mime
View raw message