3 thoughts on “Creating your own syntax highlighting in GEdit?

  1. user

    GEdit uses GtkSourceView for its syntax highlighting. You should be able to find the c.lang file it uses to highlight C code by typing a command like this:

    $ locate gtksourceview | grep /c.lang
    

    Once you find the lang file, open it up in a text editor (it’s an XML file) and near the bottom you’ll see a list of keywords which you should be able to add printf to.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *