]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use <highlight> rather than embedding HTML in <example> blocks (style trunk trunk
authorRich Bowen <rbowen@apache.org>
Mon, 20 Apr 2026 19:31:26 +0000 (19:31 +0000)
committerRich Bowen <rbowen@apache.org>
Mon, 20 Apr 2026 19:31:26 +0000 (19:31 +0000)
guide)

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

docs/manual/compliance.xml
docs/manual/content-negotiation.xml
docs/manual/custom-error.xml
docs/manual/dso.xml
docs/manual/install.xml

index 9dd1164ab91aea3b1258ac9047a34bfc45bb3a02..143e1c1195a6740990a903814ff226ac268ac1f9 100644 (file)
     <p>Invalid content types might include:</p>
 
     <example>
-      # invalid<br />
-      Content-Type: foo<br />
-      # blank<br />
-      Content-Type:
+<highlight language="config">
+# invalid
+Content-Type: foo
+# blank
+Content-Type:
+</highlight>
     </example>
 
     <p>The server administrator has the option to restrict the policy to one
index b9878a251f1fc8eb641592b3fa3996685983c889..514f2879e2ae04a185a616c069b57f7140612519 100644 (file)
     last resort:</p>
 
 <example>
-  Accept-Language: fr; q=1.0, en; q=0.5<br />
-  Accept: text/html; q=1.0, text/*; q=0.8, image/gif; q=0.6, image/jpeg; q=0.6, image/*; q=0.5, */*; q=0.1
+<highlight language="config">
+Accept-Language: fr; q=1.0, en; q=0.5
+Accept: text/html; q=1.0, text/*; q=0.8, image/gif; q=0.6, image/jpeg; q=0.6, image/*; q=0.5, */*; q=0.1
+</highlight>
 </example>
 
     <p>httpd supports 'server driven' content negotiation, as
@@ -147,15 +149,17 @@ AddHandler type-map .var
     the map file.</p>
 
 <example>
-  URI: foo<br />
-<br />
-  URI: foo.en.html<br />
-  Content-type: text/html<br />
-  Content-language: en<br />
-<br />
-  URI: foo.fr.de.html<br />
-  Content-type: text/html;charset=iso-8859-2<br />
-  Content-language: fr, de<br />
+<highlight language="config">
+URI: foo
+
+URI: foo.en.html
+Content-type: text/html
+Content-language: en
+
+URI: foo.fr.de.html
+Content-type: text/html;charset=iso-8859-2
+Content-language: fr, de
+</highlight>
 </example>
 
     <p>Note also that a typemap file will take precedence over the
@@ -180,15 +184,17 @@ AddHandler type-map .var
     assigned its language in the type map without being renamed:</p>
 
 <example>
-  URI: foo<br />
-<br />
-  URI: foo.html<br />
-  Content-type: text/html<br />
-  Content-language: en<br />
-<br />
-  URI: foo.fr.html<br />
-  Content-type: text/html<br />
-  Content-language: fr<br />
+<highlight language="config">
+URI: foo
+
+URI: foo.html
+Content-type: text/html
+Content-language: en
+
+URI: foo.fr.html
+Content-type: text/html
+Content-language: fr
+</highlight>
 </example>
 
     <p>If the variants have different source qualities, that may be
@@ -196,16 +202,18 @@ AddHandler type-map .var
     picture (available as JPEG, GIF, or ASCII-art): </p>
 
 <example>
-  URI: foo<br />
-<br />
-  URI: foo.jpeg<br />
-  Content-type: image/jpeg; qs=0.8<br />
-<br />
-  URI: foo.gif<br />
-  Content-type: image/gif; qs=0.5<br />
-<br />
-  URI: foo.txt<br />
-  Content-type: text/plain; qs=0.01<br />
+<highlight language="config">
+URI: foo
+
+URI: foo.jpeg
+Content-type: image/jpeg; qs=0.8
+
+URI: foo.gif
+Content-type: image/gif; qs=0.5
+
+URI: foo.txt
+Content-type: text/plain; qs=0.01
+</highlight>
 </example>
 
     <p>qs values can vary in the range 0.000 to 1.000. Note that
index 0f3c41ba3ee5980f0701c8e8ada4073325bdd5f2..f8ac3f466c233f2156508e384f74fc1b9b3abfbf 100644 (file)
@@ -100,16 +100,18 @@ ErrorDocument 401 /subscription/how_to_subscribe.html
       environment variables, the following.</p>
 
       <example>
-        REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/jpeg, image/png<br />
-        REDIRECT_HTTP_USER_AGENT=Mozilla/5.0 Fedora/3.5.8-1.fc12 Firefox/3.5.8<br />
-        REDIRECT_PATH=.:/bin:/usr/local/bin:/sbin<br />
-        REDIRECT_QUERY_STRING=<br />
-        REDIRECT_REMOTE_ADDR=121.345.78.123<br />
-        REDIRECT_REMOTE_HOST=client.example.com<br />
-        REDIRECT_SERVER_NAME=www.example.edu<br />
-        REDIRECT_SERVER_PORT=80<br />
-        REDIRECT_SERVER_SOFTWARE=Apache/2.2.15<br />
-        REDIRECT_URL=/cgi-bin/buggy.pl
+<highlight language="config">
+REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/jpeg, image/png
+REDIRECT_HTTP_USER_AGENT=Mozilla/5.0 Fedora/3.5.8-1.fc12 Firefox/3.5.8
+REDIRECT_PATH=.:/bin:/usr/local/bin:/sbin
+REDIRECT_QUERY_STRING=
+REDIRECT_REMOTE_ADDR=121.345.78.123
+REDIRECT_REMOTE_HOST=client.example.com
+REDIRECT_SERVER_NAME=www.example.edu
+REDIRECT_SERVER_PORT=80
+REDIRECT_SERVER_SOFTWARE=Apache/2.2.15
+REDIRECT_URL=/cgi-bin/buggy.pl
+</highlight>
       </example>
 
       <p><code>REDIRECT_</code> environment variables are created from
index a6e17fb289fcf18e387e75b8af338e233fc2b6d4..9412d9df6075ee0866dc5883792d43d32c48a719 100644 (file)
         <code>mod_foo.so</code>:</p>
 
 <example>
-$ ./configure --prefix=/path/to/install --enable-foo<br />
+<highlight language="sh">
+$ ./configure --prefix=/path/to/install --enable-foo
 $ make install
+</highlight>
 </example>
       </li>
 
@@ -108,8 +110,10 @@ $ make install
       <code>httpd.conf</code>.</p>
 
 <example>
-$ ./configure --enable-mods-shared=all<br />
+<highlight language="sh">
+$ ./configure --enable-mods-shared=all
 $ make install
+</highlight>
 </example>
       </li>
 
@@ -122,8 +126,10 @@ $ make install
       <code>--enable-load-all-modules</code>.</p>
 
 <example>
-$ ./configure --enable-mods-shared=reallyall --enable-load-all-modules<br />
+<highlight language="sh">
+$ ./configure --enable-mods-shared=reallyall --enable-load-all-modules
 $ make install
+</highlight>
 </example>
       </li>
 
@@ -134,8 +140,10 @@ $ make install
         source tree using <program>apxs</program>:
 
 <example>
-$ cd /path/to/3rdparty<br />
+<highlight language="sh">
+$ cd /path/to/3rdparty
 $ apxs -cia mod_foo.c
+</highlight>
 </example>
       </li>
     </ol>
index 94da8619be2eb4bdbd0ae97f4d900dc14841042b..4ba063c08a56e52a0493417430e4bb81bca01b3d 100644 (file)
@@ -244,8 +244,10 @@ sudo service apache2 start
     simple matter of uncompressing, and then untarring:</p>
 
 <example>
-$ gzip -d httpd-<em>NN</em>.tar.gz<br />
+<highlight language="sh">
+$ gzip -d httpd-<em>NN</em>.tar.gz
 $ tar xvf httpd-<em>NN</em>.tar
+</highlight>
 </example>
 
     <p>This will create a new directory under the current directory
@@ -312,10 +314,12 @@ $ tar xvf httpd-<em>NN</em>.tar
     <module>mod_lua</module>:</p>
 
 <example>
-      $ CC="pgcc" CFLAGS="-O2" \<br />
-       ./configure --prefix=/sw/pkg/apache \<br />
-       --enable-ldap=shared \<br />
-       --enable-lua=shared
+<highlight language="sh">
+$ CC="pgcc" CFLAGS="-O2" \
+  ./configure --prefix=/sw/pkg/apache \
+  --enable-ldap=shared \
+  --enable-lua=shared
+</highlight>
 </example>
 
     <p>When <program>configure</program> is run it will take several minutes to
@@ -420,11 +424,13 @@ $ tar xvf httpd-<em>NN</em>.tar
     changes, and then run:</p>
 
     <example>
-    $ ./config.nice<br />
-    $ make<br />
-    $ make install<br />
-    $ <em>PREFIX</em>/bin/apachectl -k graceful-stop<br />
-    $ <em>PREFIX</em>/bin/apachectl -k start<br />
+<highlight language="sh">
+$ ./config.nice
+$ make
+$ make install
+$ <em>PREFIX</em>/bin/apachectl -k graceful-stop
+$ <em>PREFIX</em>/bin/apachectl -k start
+</highlight>
     </example>
 
     <note type="warning">You should always test any new version in your