I feel Komodo Edit is a great tool.
- It supports autocompletion, both from standard library and custom code.
- It can handle multiple language files (such as HTML with PHP tags and some Javascript), with autocompletion for all of them
- Is fully scriptable, in Javascript and Python
- Recognizes a lot of languages
- Is open source