You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2006/08/04 17:21:09 UTC

svn commit: r428752 - /httpd/site/trunk/xdocs/dev/styleguide.xml

Author: pquerna
Date: Fri Aug  4 08:21:07 2006
New Revision: 428752

URL: http://svn.apache.org/viewvc?rev=428752&view=rev
Log:
Add id tags to the different examples in the styleguide, so when explaining to people why something is wrong, you can link directly to the example.

No changes to the guide's content itself.

Modified:
    httpd/site/trunk/xdocs/dev/styleguide.xml

Modified: httpd/site/trunk/xdocs/dev/styleguide.xml
URL: http://svn.apache.org/viewvc/httpd/site/trunk/xdocs/dev/styleguide.xml?rev=428752&r1=428751&r2=428752&view=diff
==============================================================================
--- httpd/site/trunk/xdocs/dev/styleguide.xml (original)
+++ httpd/site/trunk/xdocs/dev/styleguide.xml Fri Aug  4 08:21:07 2006
@@ -75,7 +75,7 @@
 <title>Details and Examples</title>
 
 <ol>
-<li><strong>Indentation, General Style</strong>
+<li id="ex-indentation"><strong>Indentation, General Style</strong>
 
 <p>Each level of indentation of code is four spaces. Tab characters
    should never be used. Specific indentation rules for function
@@ -116,7 +116,7 @@
      }
 </pre>
 </li>
-<li><strong>Comments</strong>
+<li id="ex-comments"><strong>Comments</strong>
 
 <p>Provide comments which explain the function of code where it is not
    clear from the code itself.  Provide rationale where necessary for
@@ -132,7 +132,7 @@
     code;
 </pre>
 </li>
-<li><strong>Function Declaration and Layout</strong>
+<li id="ex-func-decl"><strong>Function Declaration and Layout</strong>
 
 <p>Functions are laid out as follows:</p>
 
@@ -154,7 +154,7 @@
    see the section on indenting <A HREF="#long-exps">long declarations
    and invocations</A>.</strong></p>
 </li>
-<li><strong>Function Calls</strong>
+<li id="ex-func-calls"><strong>Function Calls</strong>
 
 <p>Space after commas in function calls. No space between function name
    and opening bracket.</p>
@@ -166,7 +166,7 @@
    and invocations</A>.</strong>
 </p>
 </li>
-<li><strong>Flow-Control Layout</strong>
+<li id="ex-flow"><strong>Flow-Control Layout</strong>
 
 <p>Flow-control statements (<samp>if</samp>, <samp>while</samp>,
    <samp>for</samp>, <EM>etc.</EM>) are laid out as in this example:</p>
@@ -192,7 +192,7 @@
 </p>
 </li>   
  
-<li><strong><samp>for</samp> Layout</strong>
+<li id="ex-for"><strong><samp>for</samp> Layout</strong>
 
 <p>Space after the semi-colons. Example:</p>
 
@@ -201,7 +201,7 @@
 </pre>
 </li>
 
-<li><strong><samp>switch</samp> Layout</strong>
+<li id="ex-switch"><strong><samp>switch</samp> Layout</strong>
 
 <p><samp>case</samp> lines within a <samp>switch()</samp> are indented to
    same level as the switch 
@@ -218,7 +218,7 @@
 </pre>
 </li>
 
-<li><strong>Expressions</strong>
+<li id="ex-expressions"><strong>Expressions</strong>
 
 <p>Space before and after assignment and other and operators. No space
    between unary operators (increment, decrement, and negation) and the
@@ -234,7 +234,7 @@
 </pre>
 </li>
 
-<li><strong>Capitalisation of Enums</strong>
+<li id="ex-enums"><strong>Capitalisation of Enums</strong>
 <p>No rule.</p>
 </li>
 </ol>