How can I get all text_tags in gtk.textview?

Hello everyone
I need to make the tags in the text clickable, but before that I need to define these tags in a list
How can I get all the tags in the text?


The question is not very clear…

Each buffer has a Gtk.TextTagTable, with the list of all declared tags. You can get it with textbuffer.get_tag_table(), and loop over it with foreach.

But each tag in the TextTagTable can be applied multiple times on different ranges of the buffer. To loop over the ranges, you can:

1 Like

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.