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 '14 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 '14 at 11:29

Geany can do the collapsing. You can install it with

sudo apt-get install geany

or from the Software Center.

| improve this answer | |

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

| improve this answer | |
  • +1 for Sublime Text! It's absolutely fantastic! – user224156 Jan 15 '14 at 12:48

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

| improve this answer | |
  • 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 '14 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.

| improve this answer | |

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.

| improve this answer | |

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.

| improve this answer | |

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