Sébastien Wilmet
2014-08-24 17:23:46 UTC
Hello,
I'm interested to know why Bluefish doesn't use GtkSourceView. I've
written this wiki page:
https://wiki.gnome.org/Projects/GtkSourceView/PainPoints
So the reasons that I see:
- Bluefish has a different implementation for the syntax highlighting
engine (plus completion system), described here:
http://oli4444.wordpress.com/2010/08/14/bluefish-editor-widget-design/
- Bluefish predates GtkSourceView, so the features like undo/redo,
margins/gutters (line numbers, marks, …) were probably already
implemented in Bluefish.
By using GtkSourceView, you would have less code to maintain in
Bluefish. You would just not use the syntax highlighting provided by
GtkSourceView, but the other features can be used. So is it just because
of a lack of time to port Bluefish, or are there other reasons?
Btw, the syntax highlighting engine of Bluefish looks very interesting.
It could be merged to GtkSourceView (as another implementation of the
GtkSourceEngine interface). And some utility classes or a common
framework could be shared between the two implementations.
(Unfortunately the current implementation in GtkSourceView is one big
class. A branch exists to split the highlighter out of the engine, but
the work was not finished).
Regards,
Sébastien
I'm interested to know why Bluefish doesn't use GtkSourceView. I've
written this wiki page:
https://wiki.gnome.org/Projects/GtkSourceView/PainPoints
So the reasons that I see:
- Bluefish has a different implementation for the syntax highlighting
engine (plus completion system), described here:
http://oli4444.wordpress.com/2010/08/14/bluefish-editor-widget-design/
- Bluefish predates GtkSourceView, so the features like undo/redo,
margins/gutters (line numbers, marks, …) were probably already
implemented in Bluefish.
By using GtkSourceView, you would have less code to maintain in
Bluefish. You would just not use the syntax highlighting provided by
GtkSourceView, but the other features can be used. So is it just because
of a lack of time to port Bluefish, or are there other reasons?
Btw, the syntax highlighting engine of Bluefish looks very interesting.
It could be merged to GtkSourceView (as another implementation of the
GtkSourceEngine interface). And some utility classes or a common
framework could be shared between the two implementations.
(Unfortunately the current implementation in GtkSourceView is one big
class. A branch exists to split the highlighter out of the engine, but
the work was not finished).
Regards,
Sébastien
--
To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org or visit the list control panel at http://www.ems.ru/cgi-bin/listargate.cgi
Bluefish web site: http://bluefish.openoffice.nl/
To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
the body of a message to listar-QLpEr2logwzILq5++***@public.gmane.org or visit the list control panel at http://www.ems.ru/cgi-bin/listargate.cgi
Bluefish web site: http://bluefish.openoffice.nl/