]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update CSS to have a perl style as well.
authorDaniel Gruno <humbedooh@apache.org>
Wed, 25 Apr 2012 09:11:38 +0000 (09:11 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Wed, 25 Apr 2012 09:11:38 +0000 (09:11 +0000)
Update CGI howto doc to highlight code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330165 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/cgi.html.en
docs/manual/howto/cgi.xml
docs/manual/mod/mod_lua.xml.fr
docs/manual/mod/mod_lua.xml.meta
docs/manual/style/css/prettify.css

index a3ebe9b5aac5464452d637626fe8b4cf3cc243f8..c3195f67507eb0e521e2a82ab94a6ef1c5872600 100644 (file)
       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
       <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 --&gt; $ENV{$key}&lt;br&gt;";<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 --&gt; $ENV{$key}&lt;br&gt;";
+}
+      </pre>
+
     
 
     <h3><a name="stdin" id="stdin">STDIN and STDOUT</a></h3>
index c917bdfc637757883358d8b8f6e49a0a07b8dc90..a2e0840f4a44ab81dce65b1d269bf7c3c5dc0f29 100644 (file)
       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
       <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 --&gt; $ENV{$key}&lt;br&gt;";<br />
-        </indent>
-        }
-      </example>
+      <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+    print "$key --&gt; $ENV{$key}&lt;br&gt;";
+}
+      </highlight>
     </section>
 
     <section id="stdin">
index 40789fb971f7893c57d50748fca4ab0e24478529..abfef69f8366cb548dbab771c4670aeb7ecd7b3c 100644 (file)
@@ -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 -->
 
index b55c7710e95c9f695fe435d176007bdf28716825..8fc1a0efdf34e8b8870065a1ce5d7c523d3f652c 100644 (file)
@@ -8,6 +8,6 @@
 
   <variants>
     <variant>en</variant>
-    <variant>fr</variant>
+    <variant outdated="yes">fr</variant>
   </variants>
 </metafile>
index 110bf491a7c444a58b73c5c86db2649f4426100f..6602c3d6115a17edcb53f14393053bae66240486 100644 (file)
@@ -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