[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: Better way to do a syntax highlight
From:       Rob Benton <rob.benton () conwaycorp ! net>
Date:       2005-10-22 18:12:04
Message-ID: 435A91CE.20908 () conwaycorp ! net
[Download RAW message or body]

Jupercio Juliano wrote:
>     Hi.
>     I'm trying to do a IDE to program microcontrolles using the C 
> language and it is my first program in gtkmm.
>     For the editor I'm using TextView+TextBuffer and need to highlight 
> the code in C.
>     Is textview a good idea to do this?
>     I found gtksourceview, but I can't understand it so much.
>     And how I retrieve a line of my text in buffer, I can't do it with 
> get_text method?
>     Thanks for any help.
> 
> regards
> 

Well last time I checked Gedit used gtksourceview so you might look at 
its source if you're interested in using that.  Or you could try 
scintilla: http://www.scintilla.org , which is what Anjuta uses (I'm 99% 
sure) for syntax highlighting and does a really good job.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic