Re: syntax highlighting
- From: "Rodrigo Moya" <Moya_Rodrigo/madrid_tecnologia sinvest es>
- To: <gnome-devel-list gnome org>
- Subject: Re: syntax highlighting
- Date: Thu, 18 Feb 1999 12:05:29 +0100
>There is no in built helper routines to do syntax highlighting in GtkText.
>The best you could do would be connect to the insert_text signal, and look
>for spaces or other word boundary in that text. Then call
>gtk_editable_get_chars to get some of the preceding text, so you can find
>the start of the word. Then check if it matches something from a keywords
>list. Now you can call gtk_editable_delete_text on that word, and
>reinsert it with gtk_text_insert, setting the correct colour. I don't
>know of any easier way to do this.
>
Does somebody know of an app that does this (or another technique) so that I
can have a look at the code?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]