Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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!

share|improve this question

marked as duplicate by Aditya, Avinash Raj, vasa1, karel, Gilles Jan 15 '14 at 14:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.… – 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
up vote 5 down vote accepted

Geany can do the collapsing. You can install it with

sudo apt-get install geany

or from the Software Center.

share|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

share|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.

share|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.

share|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.

share|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.

share|improve this answer

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