]> granicus.if.org Git - apache/commitdiff
Update syntax highlighting
authorDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 20:24:30 +0000 (20:24 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 20:24:30 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331576 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/cgi.html.en
docs/manual/howto/cgi.xml

index f02e9c2c657deaf22eecf11923451ae3a45f6b2c..73f20f2151c4cd6abf5fe45e2e81c0504e8f749b 100644 (file)
     directive has not been commented out.  A correctly configured directive
     may look like this:
 
-    <div class="example"><p><code>
+    <pre class="prettyprint lang-config">
       LoadModule cgi_module modules/mod_cgi.so
-    </code></p></div></div>
+    </pre>
+</div>
 
     <h3><a name="scriptalias" id="scriptalias">ScriptAlias</a></h3>
       
       <p>The <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code>
       directive looks like:</p>
 
-      <div class="example"><p><code>
+      <pre class="prettyprint lang-config">
         ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
-      </code></p></div>
+      </pre>
+
 
       <p>The example shown is from your default <code>httpd.conf</code>
       configuration file, if you installed Apache in the default
       file, to specify that CGI execution was permitted in a particular
       directory:</p>
 
-      <div class="example"><p><code>
-        &lt;Directory /usr/local/apache2/htdocs/somedir&gt;<br />
-        <span class="indent">
-          Options +ExecCGI<br />
-        </span>
-        &lt;/Directory&gt;
-      </code></p></div>
+      <pre class="prettyprint lang-config">
+&lt;Directory /usr/local/apache2/htdocs/somedir&gt;
+    Options +ExecCGI
+&lt;/Directory&gt;
+      </pre>
+
 
       <p>The above directive tells Apache to permit the execution
       of CGI files. You will also need to tell the server what
       files with the <code>cgi</code> or <code>pl</code> extension as CGI
       programs:</p>
 
-      <div class="example"><p><code>
+      <pre class="prettyprint lang-config">
         AddHandler cgi-script .cgi .pl
-      </code></p></div>
+      </pre>
+
     
 
     <h3><a name="htaccess" id="htaccess">.htaccess files</a></h3>
       <code>.cgi</code> in users' directories, you can use the
       following configuration.</p>
 
-      <div class="example"><p><code>
-      &lt;Directory /home/*/public_html&gt;<br />
-      <span class="indent">
-        Options +ExecCGI<br />
-        AddHandler cgi-script .cgi<br />
-      </span>
-      &lt;/Directory&gt;
-      </code></p></div>
+      <pre class="prettyprint lang-config">
+&lt;Directory /home/*/public_html&gt;
+    Options +ExecCGI
+    AddHandler cgi-script .cgi
+&lt;/Directory&gt;
+      </pre>
+
 
       <p>If you wish designate a <code>cgi-bin</code> subdirectory of
       a user's directory where everything will be treated as a CGI
       program, you can use the following.</p>
 
-      <div class="example"><p><code>
-      &lt;Directory /home/*/public_html/cgi-bin&gt;<br />
-      <span class="indent">
-        Options ExecCGI<br />
-        SetHandler cgi-script<br />
-      </span>
-      &lt;/Directory&gt;
-      </code></p></div>
+      <pre class="prettyprint lang-config">
+&lt;Directory /home/*/public_html/cgi-bin&gt;
+    Options ExecCGI
+    SetHandler cgi-script
+&lt;/Directory&gt;
+      </pre>
+
 
     
 
@@ -340,9 +340,10 @@ print "Hello, World.";
       interpreter (often <code>perl</code>) indicated in the first
       line of your CGI program, which will look something like:</p>
 
-      <div class="example"><p><code>
+      <pre class="prettyprint lang-perl">
         #!/usr/bin/perl
-      </code></p></div>
+      </pre>
+
 
       <p>Make sure that this is in fact the path to the
       interpreter.</p>
index a2e0840f4a44ab81dce65b1d269bf7c3c5dc0f29..fcd70e6c5dd174fb3f3b569d74e14f21ed775e99 100644 (file)
@@ -64,9 +64,9 @@
     directive has not been commented out.  A correctly configured directive
     may look like this:
 
-    <example>
+    <highlight language="config">
       LoadModule cgi_module modules/mod_cgi.so
-    </example></note>
+    </highlight></note>
 
     <section id="scriptalias">
       <title>ScriptAlias</title>
@@ -83,9 +83,9 @@
       <p>The <directive module="mod_alias">ScriptAlias</directive>
       directive looks like:</p>
 
-      <example>
+      <highlight language="config">
         ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
-      </example>
+      </highlight>
 
       <p>The example shown is from your default <code>httpd.conf</code>
       configuration file, if you installed Apache in the default
       file, to specify that CGI execution was permitted in a particular
       directory:</p>
 
-      <example>
-        &lt;Directory /usr/local/apache2/htdocs/somedir&gt;<br />
-        <indent>
-          Options +ExecCGI<br />
-        </indent>
-        &lt;/Directory&gt;
-      </example>
+      <highlight language="config">
+&lt;Directory /usr/local/apache2/htdocs/somedir&gt;
+    Options +ExecCGI
+&lt;/Directory&gt;
+      </highlight>
 
       <p>The above directive tells Apache to permit the execution
       of CGI files. You will also need to tell the server what
       files with the <code>cgi</code> or <code>pl</code> extension as CGI
       programs:</p>
 
-      <example>
+      <highlight language="config">
         AddHandler cgi-script .cgi .pl
-      </example>
+      </highlight>
     </section>
 
     <section id="htaccess">
       <code>.cgi</code> in users' directories, you can use the
       following configuration.</p>
 
-      <example>
-      &lt;Directory /home/*/public_html&gt;<br/>
-      <indent>
-        Options +ExecCGI<br/>
-        AddHandler cgi-script .cgi<br/>
-      </indent>
-      &lt;/Directory&gt;
-      </example>
+      <highlight language="config">
+&lt;Directory /home/*/public_html&gt;
+    Options +ExecCGI
+    AddHandler cgi-script .cgi
+&lt;/Directory&gt;
+      </highlight>
 
       <p>If you wish designate a <code>cgi-bin</code> subdirectory of
       a user's directory where everything will be treated as a CGI
       program, you can use the following.</p>
 
-      <example>
-      &lt;Directory /home/*/public_html/cgi-bin&gt;<br/>
-      <indent>
-        Options ExecCGI<br/>
-        SetHandler cgi-script<br/>
-      </indent>
-      &lt;/Directory&gt;
-      </example>
+      <highlight language="config">
+&lt;Directory /home/*/public_html/cgi-bin&gt;
+    Options ExecCGI
+    SetHandler cgi-script
+&lt;/Directory&gt;
+      </highlight>
 
     </section>
 
@@ -346,9 +340,9 @@ print "Hello, World.";
       interpreter (often <code>perl</code>) indicated in the first
       line of your CGI program, which will look something like:</p>
 
-      <example>
+      <highlight language="perl">
         #!/usr/bin/perl
-      </example>
+      </highlight>
 
       <p>Make sure that this is in fact the path to the
       interpreter.</p>