Text diff tools: Difference between revisions

Jump to navigation Jump to search
225 bytes added ,  30 March 2013
Line 113: Line 113:


== 編輯器設定 ==
== 編輯器設定 ==
為了方便 diff ,使用 4 個 {{kbd | key=space}} 取代 {{kbd | key=Tab}} 按鍵<ref>[http://blog.wu-boy.com/2012/07/how-to-write-maintainable-php-source-code/ 寫出好維護的 PHP 程式碼 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY]</ref>。
為了方便 diff ,使用 4 個 {{kbd | key=space}} 取代 {{kbd | key=Tab}} 按鍵<ref>* [http://blog.wu-boy.com/2012/07/how-to-write-maintainable-php-source-code/ 寫出好維護的 PHP 程式碼 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY]
* [http://pear.php.net/manual/en/standards.indenting.php Manual :: Indenting and Line Length] Quote: "Use an indent of 4 spaces, with no tabs. This helps to avoid problems with diffs, patches, SVN history and annotations."</ref>。


ex: [http://www.sublimetext.com/ Sublime Text] v.2<ref>[http://www.sublimetext.com/docs/2/indentation.html Indentation Settings - Sublime Text 2 Documentation]</ref>
ex: [http://www.sublimetext.com/ Sublime Text] v.2<ref>[http://www.sublimetext.com/docs/2/indentation.html Indentation Settings - Sublime Text 2 Documentation]</ref>

Navigation menu