Questions tagged [gtksourceview]

GtkSourceView is a portable C library that extends the standard GTK+ framework.

GtkSourceView is a portable C library that extends the standard GTK+ framework for multiline text editing with support for configurable syntax highlighting, unlimited undo/redo, UTF-8 compliant caseless searching, printing and other features typical of a source code editor.

GtkSourceView is licensed under the GNU LGPL 2.1 and is part of the GNOME Desktop Environment.

87 questions
0
votes
1 answer

not able to configure and install java-gnome bindings on fedora 16 due to gtksourceview

I am trying to install the java-gnome development bindings on my desktop running fedora 16. one of the dependency for it to work is 'gtksourceview'>=2.91. I tried to install it through yum repository and also by compiling the source code but on…
Jor-el
  • 168
  • 1
  • 8
0
votes
0 answers

GTKSourceView "style not defined" when loading a file with custom .lang file

I edited the default markdown.lang file to add different colored headers depending on the level. This works, but whenever I launch a file (with mousepad) from the teminal, I get a bunch of warnings of the format: (mousepad:3981174):…
0
votes
1 answer

GtkSourceView-CRITICAL **: Highlighting a single line took too much time, syntax highlighting will be disabled

I'm experiencing this issue related to GtkSourceView4 and I want to understand how to avoid it (litos:4353): GtkSourceView-CRITICAL **: 12:57:09.105: Highlighting a single line took too much time, syntax highlighting will be disabled It happens when…
gioretikto
  • 229
  • 2
  • 9
0
votes
1 answer

Can Gtk widgets be imported into Gtk#

I'm trying to use the GtkSourceView into a Gtk# project, as the TextView is simply horrid. How can I do that? There's a GtkSourceView-sharp but it's outrageously dated and doesn't work.
0
votes
1 answer

How to change the background color of the line numbers mode in GTK3+?

I'm designing a text editor in C/GTK3+, using the GtkSourceView class to be able to show the line numbers via the method gtk_source_view_set_show_line_numbers. I'm able to modify the background color of textview and text but not that of panel…
gioretikto
  • 229
  • 2
  • 9
0
votes
1 answer

How can I load a style in GtkSourceView in python?

How can I load a new style in a GtkSourceView ? In Gedit I can see it lists the styles found in /usr/share/gtksourceview-3.0/styles, how can I get my own GtkSourceView to load one of these styles ?
Stuart Axon
  • 1,844
  • 1
  • 26
  • 44
0
votes
1 answer

Linking undo history between multiple GtkSourceViews

I have an application which contains several GtkSourceView widgets. The main interface is a sheet containing multiple "cells" - each a GtkSourceView. GtkSourceView has built-in support for undo, but each widget has its own "undo stack." I'd like to…
Sam Magura
  • 850
  • 8
  • 18
0
votes
2 answers

GtkSourceView/Buffer crash: Gtk-ERROR: Byte index is off the end of the line

I have been working on text editor for writing stories. I am using Python, GTK+ 3 and GtkSourceView 3. The main point of the editor is folding certain regions. While there is no - not yet? - built-in support for folding in GTK TextView / SourceView,…
MaKo
  • 746
  • 3
  • 11
0
votes
1 answer

Adding a gtksourceview custom language with no root access

I'm trying to add a new gtksourceview custom language for use with gedit, but I don't have root access nor sudo privileges to change the /usr/<...> directory. Is there any alternative? Our system administrator is reluctant to change /usr/<...>
0
votes
1 answer

Match fuzzy pattern, without previous words, but only for one occurence

I have lines that are of the type @variable a 2, from the beginning of the line. The keyword and its identifier @variable are known and fixed. The variables can have [_a-zA-Z] as the first character and then for the second character numbers, too, or…
a concerned citizen
  • 787
  • 2
  • 9
  • 25
0
votes
1 answer

c gtk+: loading a text file into a GtkSourceView's TextBuffer

I'm writing a program using the C language with gtk+ and gtksourceview-2.0. I'm using a GtkFileChooser for the user to choose a file and when he clicks on it, i want the content to be loaded to the GtkSourceView' TextBuffer this is the function…
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
1 answer

How can I highlight "A" after "B", but do not highlight "B" itself?

Suppose I want do define a special style for every character A that appears after the character B. If I do this? [B][A] then B itself gets highlighted, which I do not…
Erel Segal-Halevi
  • 33,955
  • 36
  • 114
  • 183
0
votes
1 answer

gtkSourceView - usage of query-tooltip-text

I want to use the callback "query-tooltip-text" on my gtkSourceView. I connect the callback to the signal by using: ... g_signal_connect(G_OBJECT(attributes), "query-tooltip-text", G_CALLBACK(on_lineMarkerTooltip_displayed),…
Alex
  • 1,602
  • 20
  • 33
0
votes
0 answers

Syntax highlighting by tab-delimited column in gtksourceview

I'm writing a syntax-highlighting file for all .bed files. The exact content of each column may vary and generally looks like below chr1 11873 14409 uc001aaa.3 0 + 11873 11873 0 3 354,109,1189, 0,739,1347, chr21 1000000 1230000…
Artem
  • 217
  • 2
  • 10
0
votes
1 answer

Change GtkSourceView contents on resize

I have a GtkSourceView widget with some text, it works fine. I'd like to change the contents of the associated text buffer when the user resizes the view widget; I am having trouble doing this reliably. What is the preferred method? The SourceView…
ejgallego
  • 6,709
  • 1
  • 14
  • 29