From: Daniel Gruno
Date: Wed, 25 Apr 2012 09:11:38 +0000 (+0000)
Subject: Update CSS to have a perl style as well.
X-Git-Tag: 2.5.0-alpha~7047
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=500c1d015c50876879f773aff0aa760552993ec0;p=thirdparty%2Fapache%2Fhttpd.git
Update CSS to have a perl style as well.
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
---
diff --git a/docs/manual/howto/cgi.html.en b/docs/manual/howto/cgi.html.en
index a3ebe9b5aac..c3195f67507 100644
--- a/docs/manual/howto/cgi.html.en
+++ b/docs/manual/howto/cgi.html.en
@@ -231,11 +231,12 @@
file called first.pl
, and put it in your
cgi-bin
directory.
-
- #!/usr/bin/perl
- print "Content-type: text/html\n\n";
- print "Hello, World.";
-
+
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+
+
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 @@
add your own environment variables
to the basic ones provided by default.
-
- #!/usr/bin/perl
- print "Content-type: text/html\n\n";
- foreach $key (keys %ENV) {
-
- print "$key --> $ENV{$key}<br>";
-
- }
-
+
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+
+
diff --git a/docs/manual/howto/cgi.xml b/docs/manual/howto/cgi.xml
index c917bdfc637..a2e0840f4a4 100644
--- a/docs/manual/howto/cgi.xml
+++ b/docs/manual/howto/cgi.xml
@@ -238,11 +238,11 @@
file called first.pl
, and put it in your
cgi-bin
directory.
-
- #!/usr/bin/perl
- print "Content-type: text/html\n\n";
- print "Hello, World.";
-
+
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Hello, World.";
+
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 @@
add your own environment variables
to the basic ones provided by default.
-
- #!/usr/bin/perl
- print "Content-type: text/html\n\n";
- foreach $key (keys %ENV) {
-
- print "$key --> $ENV{$key}<br>";
-
- }
-
+
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+
diff --git a/docs/manual/mod/mod_lua.xml.fr b/docs/manual/mod/mod_lua.xml.fr
index 40789fb971f..abfef69f836 100644
--- a/docs/manual/mod/mod_lua.xml.fr
+++ b/docs/manual/mod/mod_lua.xml.fr
@@ -1,7 +1,7 @@
-
+
diff --git a/docs/manual/mod/mod_lua.xml.meta b/docs/manual/mod/mod_lua.xml.meta
index b55c7710e95..8fc1a0efdf3 100644
--- a/docs/manual/mod/mod_lua.xml.meta
+++ b/docs/manual/mod/mod_lua.xml.meta
@@ -8,6 +8,6 @@
en
- fr
+ fr
diff --git a/docs/manual/style/css/prettify.css b/docs/manual/style/css/prettify.css
index 110bf491a7c..6602c3d6115 100644
--- a/docs/manual/style/css/prettify.css
+++ b/docs/manual/style/css/prettify.css
@@ -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