I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do want it to indent the next line after I press Enter (this it does properly). However, when I am on an empty line (no indentation, no characters) and I press Enter, it indents the next line, using the same indentation as the last non-empty line. I find this extremely annoying; have you ever encountered this problem and do you know how to fix it?
(Note: I'm editing HTML/PHP files.)
(Also, suggestions of other good free editors for HTML/PHP are welcome, in case there is no way of changing this behaviour.)
1) First install NppAutoIndent plugin if you don't have it.
Plugins > Plugin Manager > Show Plugin Manager, then install NppAutoIndent from the "Available" tab of that menu.
2) This behavior can be turned off by doing:
Plugins > NppAutoIndent > Previous line
3) If this option is disabled, you may need to first check this option:
Plugins > NppAutoIndent > Ignore language