Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Using the quickly ubuntu-application template (i.e. python and GTK3), what solutions exist to display a text editor in which I can highlight some parts of the text and add annotations/extra visuals at some places?

The idea is to have a component where the user can type in text and as he does so there are some annotations schown (similar to syntax highlighting).

The editor does not have to be a rich text editor or anything like an office application, just a text editor would be fine.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

The two most-used text widgets are Gnome's native text widget, and Scintilla. Each do rich text but are often used for plain text. I'm sure they both handle highlighting, can be programmed to include annotation and comment text, and are able to incorporate graphic objects.

GTKText is the text widget in PyGTK; see http://www.pygtk.org/pygtktutorial/ch-textwidget.html et al.

Scintilla is used widely in GTK and Windows, at least; here it is: http://www.scintilla.org/ in its own website.

Exactly how this is used with Quickly, I'm not certain -- but if are writing GUI code for a Quickly app, these links will at least give you an idea of what's out there.

Best of luck!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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