Open Eclipse preferences. In the “General”, “Editors”, “Text editors”:
clear “Insert spaces for tabs”
check “Show print margin” and set “Print margin column” to 80
To clear trailing whitespace on save, install “AnyEdit” Eclipse plugin (find it on the Internet using your preferred search engine). Then in “General”, “Editors”, “AnyEdit tools” check two options: “Remove trailing whitespace” and “Convert tabs <-> spaces”. Also select “Spaces to tabs”.
In the “General”, “Workspace” set “New text file line delimiter” to “Other” and “Unix”.
Komodo IDE is a product of ActiveState. It is available at http://www.activestate.com/
In the Komodo IDE preferences select the “Editor” parameter group and from there select “Indentation”. Set options as follows:
Auto–indent style: Use Smart Indent
“Prefer tab characters over spaces” should be checked (in “Indentation” and “Language settings”/”PHP”)
“Number of spaces per indent” is set to 4
“Width of each tab character” is set to 4
In the “Smart editing” group set “Show edge line / Highlight characters beyond edge line” and enter “80” in the “Eddge line column”.
In the “Save options” group set “Clean trailing whitespace and EOL marker”.
In the “New files” group set “Specify end-of-line (EOL) indicator for newly created files” to “Unix (\n)”.