I am looking for a text editor with advanced capabilities. For example; I should be able to expand and collapse xml codes/sections (or c/c++ sections) easily.
Something similar notepad++ for windows.
Also, If it can additionally create a Table of contents from the tags that would be even more good!