I have an idea for a gui application:
1) the user can enter the error they are getting &/or the programming language & the program will search a database for the error & display code, reasons for it
2) the user can enter something like "class" & "c++" into the programming bit & it will look for examples.
What I am asking is how to do this, one idea I've had is to use GtkSourceView widget & display the text like that, but I doubt this is the best way to do it.