small correction to the coding guidelines

git-svn-id: file:///svn/phpbb/trunk@6328 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-08-29 15:52:05 +00:00
parent 69983a2d4e
commit 1307146a93

View file

@ -214,12 +214,12 @@ body {
<div class="paragraph"> <div class="paragraph">
<h3>Tabs vs Spaces:</h3> <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>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>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>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> <blockquote><pre>
$mode{TAB}{TAB}= request_var('mode', ''); {TAB}$mode{TAB}{TAB}= request_var('mode', '');
$search_id{TAB}= request_var('search_id', ''); {TAB}$search_id{TAB}= request_var('search_id', '');
</pre></blockquote> </pre></blockquote>
<p>If entered with tabs (replace the {TAB}) both equal signs need to be on the same column.</p> <p>If entered with tabs (replace the {TAB}) both equal signs need to be on the same column.</p>