Re: Better way to do a syntax highlight



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]