You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/04/25 11:11:39 UTC
svn commit: r1330165 - in /httpd/httpd/trunk/docs/manual: howto/cgi.html.en
howto/cgi.xml mod/mod_lua.xml.fr mod/mod_lua.xml.meta style/css/prettify.css
Author: humbedooh
Date: Wed Apr 25 09:11:38 2012
New Revision: 1330165
URL: http://svn.apache.org/viewvc?rev=1330165&view=rev
Log:
Update CSS to have a perl style as well.
Update CGI howto doc to highlight code
Modified:
httpd/httpd/trunk/docs/manual/howto/cgi.html.en
httpd/httpd/trunk/docs/manual/howto/cgi.xml
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta
httpd/httpd/trunk/docs/manual/style/css/prettify.css
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.html.en?rev=1330165&r1=1330164&r2=1330165&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.html.en (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.html.en Wed Apr 25 09:11:38 2012
@@ -231,11 +231,12 @@
file called <code>first.pl</code>, and put it in your
<code>cgi-bin</code> directory.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </pre>
+
<p>Even if you are not familiar with Perl, you should be able
to see what is happening here. The first line tells Apache
@@ -479,15 +480,14 @@
<a href="../env.html">add your own environment variables</a>
to the basic ones provided by default.</p>
- <div class="example"><p><code>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <span class="indent">
- print "$key --> $ENV{$key}<br>";<br />
- </span>
- }
- </code></p></div>
+ <pre class="prettyprint lang-perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </pre>
+
<h3><a name="stdin" id="stdin">STDIN and STDOUT</a></h3>
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml?rev=1330165&r1=1330164&r2=1330165&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml Wed Apr 25 09:11:38 2012
@@ -238,11 +238,11 @@
file called <code>first.pl</code>, and put it in your
<code>cgi-bin</code> directory.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+ </highlight>
<p>Even if you are not familiar with Perl, you should be able
to see what is happening here. The first line tells Apache
@@ -489,15 +489,13 @@
<a href="../env.html">add your own environment variables</a>
to the basic ones provided by default.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <indent>
- print "$key --> $ENV{$key}<br>";<br />
- </indent>
- }
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </highlight>
</section>
<section id="stdin">
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr?rev=1330165&r1=1330164&r2=1330165&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr Wed Apr 25 09:11:38 2012
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1238738 -->
+<!-- English Revision: 1238738:1330137 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta?rev=1330165&r1=1330164&r2=1330165&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.meta Wed Apr 25 09:11:38 2012
@@ -8,6 +8,6 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
</variants>
</metafile>
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=1330165&r1=1330164&r2=1330165&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/css/prettify.css (original)
+++ httpd/httpd/trunk/docs/manual/style/css/prettify.css Wed Apr 25 09:11:38 2012
@@ -94,4 +94,22 @@ pre.lang-lua{
.lang-lua .lit { color: #088 } /* a literal */
.lang-lua .str { color: #009606 } /* string content */
.lang-lua .kwd { color: #00C; font-weight: bold } /* a keyword */
-.lang-lua .typ { color: #808 } /* a type name */
\ No newline at end of file
+.lang-lua .typ { color: #808 } /* a type name */
+
+
+
+
+/* Highlighting style for Perl source code */
+pre.lang-perl{
+ background-color: #f8f6ee;
+ color: #000;
+ padding: 0.5em;
+ margin: 1em 2em 1em 1em;
+ border: 1px dotted #666;
+}
+
+.lang-perl .com { color: #c34e00 } /* a comment */
+.lang-perl .lit { color: #088 } /* a literal */
+.lang-perl .str { color: #009606 } /* string content */
+.lang-perl .kwd { color: #00C; font-weight: bold } /* a keyword */
+.lang-perl .typ { color: #808 } /* a type name */
\ No newline at end of file