aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-08-29 15:52:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-08-29 15:52:05 +0000
commit1307146a931dcbd3c4d171d339865c650e11e28d (patch)
tree9e00ffc9ece3d4eb9b5300abd03275022185147f
parent69983a2d4ea6e59361751efdf4a0aed78edd6370 (diff)
downloadforums-1307146a931dcbd3c4d171d339865c650e11e28d.tar
forums-1307146a931dcbd3c4d171d339865c650e11e28d.tar.gz
forums-1307146a931dcbd3c4d171d339865c650e11e28d.tar.bz2
forums-1307146a931dcbd3c4d171d339865c650e11e28d.tar.xz
forums-1307146a931dcbd3c4d171d339865c650e11e28d.zip
small correction to the coding guidelines
git-svn-id: file:///svn/phpbb/trunk@6328 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/coding-guidelines.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index 5510a28b78..26211758c2 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -214,12 +214,12 @@ body {
<div class="paragraph">
<h3>Tabs vs Spaces:</h3>
- <p>In order to make this as simple as possible, we will be using tabs, not spaces. Feel free to set how many spaces your editor uses when it <b>displays</b> tabs, but make sure that when you <b>save</b> the file, it's saving tabs and not spaces. This way, we can each have the code be displayed the way we like it, without breaking the layout of the actual files.</p>
- <p>Additionally please check your editor for the indent size. If tabs are set to 4 spaces for example, the indent size needs to be 4 too:</p>
-
+ <p>In order to make this as simple as possible, we will be using tabs, not spaces. We enforce 4 (four) spaces for one tab - therefore you need to set your tab width within your editor to 4 spaces. Make sure that when you <b>save</b> the file, it's saving tabs and not spaces. This way, we can each have the code be displayed the way we like it, without breaking the layout of the actual files.</p>
+ <p>Tabs in front of lines are no problem, but having them within the text can be a problem if you do not set it to the amount of spaces every one of us uses. Here is a short example of how it should look like:</p>
+
<blockquote><pre>
-$mode{TAB}{TAB}= request_var('mode', '');
-$search_id{TAB}= request_var('search_id', '');
+{TAB}$mode{TAB}{TAB}= request_var('mode', '');
+{TAB}$search_id{TAB}= request_var('search_id', '');
</pre></blockquote>
<p>If entered with tabs (replace the {TAB}) both equal signs need to be on the same column.</p>