Perhaps this is a non-sequitur, but if you want something like an IDE for writing, Scrivener does a decent job. Its designed to help you marshal research (links, text, media) as well as to organize your writing. Plus it appears to be quite customizable. People have made document templates for screenwriting, research proposals, comicbook scripts, novel writing, etc. Its my preferred tool for longer prose.