Re: [gedit-list] gtk_source_buffer_iter_has_context_class problems





2010/3/2 Jesse van den Kieboom <jessevdk gnome org>
Chuchi Perriman wrote:
> Hi!!
>
> I'm having problems using:
>
> gtk_source_buffer_iter_has_context_class(buffer, &copy, "char")
>
> When I use gtk_source_buffer_iter_has_context_class(buffer, &copy,
> "string"), gtksourceview works fine ("comment" context too).
>
> I'm trying to get a character like '(' or '\n' etc. but I cannot fo it :(
I don't know. If you added the context classes in the lang file, it
should work just like for string and comment...

I'm using the c.lang file and there is a "char" context but it doesn't work.
 
>
> I've looked in the .lang file and I have tried with "char" and
> "character" context name but does't work.
>
> Can you help me?
>
> Thanks!!!
>
> PD: gtk_source_buffer_iter_has_context_class works if highlighting is
> disabled?
Nope

Doh!! I suppose it :) Then I cannot use it for the indentation :(

Thanks again Jesse
 
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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]