Re: [gedit-list] Class Browser Plugin
- From: Christopher Backhouse <cjbackhouse gmail com>
- To: Frederic Back <fredericback gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] Class Browser Plugin
- Date: Fri, 17 Nov 2006 10:41:43 +0000
At first glance it seems that this only recognises languages by their
file extensions (eg my python code isn't in a .py file but can be
recognised by the #!/usr/bin/python at the top). It would be helpful if
you could either check for hints as to the language type such as this,
or probably better hook into whatever mechanism gedit uses to correctly
identify these files. (or point me at the option I've missed where I can
force the language)
Saved me the work of writing something like this myself though (as I was
tempted to attempt)
Frederic Back wrote:
Hello,
I just released a fresh development version of the class browser plugin.
It displays the hierarchy of code elements (tags) in a tree in the side
pane.
Get it here:
http://www.stambouliote.de/projects/gedit_plugins.html
The parsing is done by separate document parsers that specialise on a
mime type. The parsers provide the following:
* A treemodel containing whatever they like
* A cellrenderer to render a row in the treemodel
* A menu extension to extend the context menu
Currently two code parsers are included:
* A parser based on ctags exuberant
* A parser for python code
I think I'll add an html parser next, since ctags doesn't parse html.
Also, if someone knows a good library to parse c/c++ code, please let me
know, since I'm personally fed up with the way ctags reorders the code.
Questions and suggestions are absolutely welcome, as usual!
Cheers!
Fred
_______________________________________________
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]