httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1330363 - in /httpd/httpd/trunk/docs/manual/style: css/prettify.css scripts/prettify.js
Date Wed, 25 Apr 2012 15:51:32 GMT
Author: humbedooh
Date: Wed Apr 25 15:51:31 2012
New Revision: 1330363

URL: http://svn.apache.org/viewvc?rev=1330363&view=rev
Log:
Recognize IPv6 addresses as literals, update comment colors so they don't clash with section
directives.

Modified:
    httpd/httpd/trunk/docs/manual/style/css/prettify.css
    httpd/httpd/trunk/docs/manual/style/scripts/prettify.js

Modified: httpd/httpd/trunk/docs/manual/style/css/prettify.css
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/css/prettify.css?rev=1330363&r1=1330362&r2=1330363&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/css/prettify.css (original)
+++ httpd/httpd/trunk/docs/manual/style/css/prettify.css Wed Apr 25 15:51:31 2012
@@ -32,7 +32,7 @@
 }
 
 /* Put a border around prettyprinted code snippets. */
-pre.prettyprint { padding: 2px; border: 1px solid #888 }
+pre.prettyprint { padding: 2px; border: 1px solid #888; tab-size: 4; }
 
 /* Specify class=linenums on a pre to get line numbering */
 ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
@@ -51,6 +51,8 @@ li.L5,
 li.L7,
 li.L9 { background: #eee }
 
+
+
 /* Highlighting style for Apache configuration files */
 pre.lang-config{ 
     background-color: #e5ecf3;
@@ -59,9 +61,10 @@ pre.lang-config{ 
     margin: 1em 2em 1em 1em;
     border: none;
 }
-
 .lang-config .tag { color: #821; font-weight: bold }  /* enclosures */
 .lang-config .kwd { color: #128; font-weight: bold }  /* directives */
+.lang-config .com { color: #c46d34 }  /* comments */
+
 
 
 
@@ -74,7 +77,7 @@ pre.lang-c{ 
     border: 1px dotted #666;
 }
 
-.lang-c .com { color: #c34e00 }  /* a comment */
+.lang-c .com { color: #c46d34 }  /* a comment */
 .lang-c .lit { color: #088 } /* a literal */
 .lang-c .str { color: #009606 } /* string content */
 .lang-c .kwd { color: #00C; font-weight: bold }  /* a keyword */
@@ -82,6 +85,8 @@ pre.lang-c{ 
 .lang-c .tag { color: #248 }  /* a markup tag name */
 
 
+
+
 /* Highlighting style for Lua source code */
 pre.lang-lua{ 
     background-color: #f8f6ee;

Modified: httpd/httpd/trunk/docs/manual/style/scripts/prettify.js
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/scripts/prettify.js?rev=1330363&r1=1330362&r2=1330363&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/scripts/prettify.js (original)
+++ httpd/httpd/trunk/docs/manual/style/scripts/prettify.js Wed Apr 25 15:51:31 2012
@@ -896,6 +896,8 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?
              '^(?:'
              // A hex number
              + '0x[a-f0-9]+'
+             // An IPv6 Address
+             + '|[a-f0-9:]+:[a-f0-9:]+:[a-f0-9:]+:[a-f0-9:]+:[a-f0-9:]+:[a-f0-9:]+'
              // or an octal or decimal number,
              + '|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)'
              // possibly in scientific notation



Mime
View raw message