]> granicus.if.org Git - apache/commitdiff
highlight C source code
authorDaniel Gruno <humbedooh@apache.org>
Tue, 24 Apr 2012 17:58:10 +0000 (17:58 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 24 Apr 2012 17:58:10 +0000 (17:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1329896 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dbd.html.en
docs/manual/mod/mod_dbd.xml

index fe255a91a4ca88cc82c7ea8018baf9e968caea7b..f5508a7fd6d12b469f7837775f1538264cfbddd0 100644 (file)
@@ -83,7 +83,8 @@
     <p><code class="module"><a href="../mod/mod_dbd.html">mod_dbd</a></code> exports five functions for other modules
     to use. The API is as follows:</p>
 
-    <div class="example"><pre><code>typedef struct {
+<pre class="prettyprint lang-c">
+typedef struct {
     apr_dbd_t *handle;
     apr_dbd_driver_t *driver;
     apr_hash_t *prepared;
@@ -119,7 +120,8 @@ APR_DECLARE_OPTIONAL_FN(void, ap_dbd_close, (server_rec*, ap_dbd_t*));
 APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
 APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_cacquire, (conn_rec*));
 APR_DECLARE_OPTIONAL_FN(void, ap_dbd_prepare, (server_rec*, const char*, const char*));
-</code></pre></div>
+</pre>
+
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="prepared" id="prepared">SQL Prepared Statements</a></h2>
index 05de4a81ae630c895563ab73c2608786253b8c4b..183bbd8d5d585c7e4cff61f505464b897eb6a34d 100644 (file)
@@ -59,8 +59,8 @@
     <p><module>mod_dbd</module> exports five functions for other modules
     to use. The API is as follows:</p>
 
-    <example>
-<pre><code>typedef struct {
+<highlight language="c">
+typedef struct {
     apr_dbd_t *handle;
     apr_dbd_driver_t *driver;
     apr_hash_t *prepared;
@@ -96,8 +96,7 @@ APR_DECLARE_OPTIONAL_FN(void, ap_dbd_close, (server_rec*, ap_dbd_t*));
 APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_acquire, (request_rec*));
 APR_DECLARE_OPTIONAL_FN(ap_dbd_t*, ap_dbd_cacquire, (conn_rec*));
 APR_DECLARE_OPTIONAL_FN(void, ap_dbd_prepare, (server_rec*, const char*, const char*));
-</code></pre>
-    </example>
+</highlight>
 </section>
 
 <section id="prepared"><title>SQL Prepared Statements</title>