Re: [gedit-list] Code folding



Noe Nieto wrote:
Hi everybody on this list.

Hi Noe,

I'm developing applications with Java for cellphones (J2ME). I normally used Eclipse for coding and was happy until I was forced to move to Netbeans: After that I realized the power of Java ... to freeze your computer with unallocated memory....

So I'm considering to keep developing with an stand alone editor like gedit (wich in 2.14 is awesome!!!).

Before I make the final move to gedit I would like to have two of the best features of Eclipse and Netbeans: code folding (Definitely a MUST have) and code hyperlink-like navigation (A would-like).

The Hyperlink-like code navigation I'm referring is that when you move the mouse pointer over a function or object's method, It get's highlighted and becomes a hyperlink wich links to the source code of this function, methos or definition.

This is a nice idea and sound doable without too much pain in a plugin.
There are also couple of plugins which already use CTAGS to do something similar.

Anjuta Dev studio already does code folding quite well, so I'd first take a look at the IDE's source code and try to catch up the idea of what can be done to implement this useful feature.

code folding support is being worked on in the gtksourceview widget (which gedit uses) and we hope to have it ready in the next months... note that codefolding is not an easy feature to code and it is a double faced problem: on one side you have to code the machinery to hide/display the text, draw clickable expanders in the margin etc, on the other side you need to find out *where* to fold. The first side of the problem is already mostly working in a cvs branch of gtksourceview, the second instead is a bit trickier since it needs a parser able to find the folding points in each kind of language (java, c, python, etc)

ciao
   paolo
But before writing anything I would like to have your opinions of this feature request. I'm willing to invest a couple of hours to help coding this as a plugin.

What do you think, will this be possible in gedit?

cheers!!
------------------------------------------------------------------------

_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]