doc:howto:styleguide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:howto:styleguide [2011/07/10 22:37] – linked to Fedora Style Guide as ours philipdoc:howto:styleguide [2014/06/20 12:26] – replaced with a new guide sobak
Line 1: Line 1:
-==== Style Guide ==== +This page has been removedin favor of [[http://doc.php.net/tutorial/style.php|new guide]]
-This style guide affects the PHP Manual. +
- +
-=== Reference === +
-We follow the following style guide as a base: +
- +
-  * A first-person active voice is preferredwhich also means do not address the reader directly as "You" +
-  * We follow the [[http://fedoraproject.org/wiki/DocsProject/StyleGuide|Fedora Style Guide]] +
- +
-=== Conventions specific to the PHP Manual === +
-  * The refpurpose should not end with a period +
-  * Indenting is one space, and never tabs +
-  * Whitespace changes should never be mixed with content changes +
-  * Text that's repeated 3x or more should be defined as an entity within language-snippets.ent +
-  * Many words, such as TRUE, FALSE, and NULL, should use the entity versions instead, like %%&true;%% +
-  * Using %%<para>%% or %%<simpara>%% does not matter, but %%<para>%% is preferred +
-  * Constants should be surrounded with %%<constant>%%, like %%<constant>PHP_EOL</constant>%% +
-  * Functions should be surrounded with %%<function>%%, like %%<function>strlen</function>%% (Or, %%<methodname>%% for methods) +
-  * Variables should be surrounded with %%<varname>%% like %%<varname>$foo</varname>%% +
-  * ... Create "common docbook tag usages" instead of repeating.... +
-  * Examples should use the [[http://pear.php.net/manual/en/standards.php|PEAR Coding Standards]] +
- +
doc/howto/styleguide.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1