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!

  • stackoverflow.com/questions/2898/…
    – c0rp
    Jan 15, 2014 at 11:07
  • This is sort of a 'Big List' question, as it genrally ends up with lots of answers as everyone has their own answer, so this might be closed as that, per the FAQ, despite being fairly useful like other software-recommendation questions.
    – Wilf
    Jan 15, 2014 at 11:29

6 Answers 6


I use notepad++ on windows but since it is not avaible on linux I use Sublime Text

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

Here is an list with linux text editors: link

  • +1 for Sublime Text! It's absolutely fantastic!
    – user224156
    Jan 15, 2014 at 12:48

Geany can do the collapsing. You can install it with

sudo apt-get install geany

or from the Software Center.


I'm not much of a GUI user but I love Kate editor which is quiet good for programming purpose.

  • Kate is a fine editor, but since it is KDE based there are often issues running it on Unity. For example it has a habit of loading with the top bar of the window hidden by the Unity toolbar, so you have to switch workspaces, drag it to the center, and then move it back to the old workspace.
    – smcg
    Jan 15, 2014 at 14:53

Gedit if very good a C and other programming languages. It does highlighting, making it easy to use.

Bluefish is very good as well, and also does the collapse/expand behaviour you want.


I'm currently using jEdit for LaTeX and python. I find the syntax highlighting better than notepad++, and it does code folding, though I haven't tried it on C. I was seriously considering trying notepad++ under wine though.


You may use QtCreator only (probably without tool-chains and compilers). There are good code highlight and ability to customize syntax for yourself. Also, as you asked, QtCreator is able to create table of context + code completion.

Not the answer you're looking for? Browse other questions tagged or ask your own question.