Creating your own syntax highlighting in GEdit?

后端 未结 2 1125
深忆病人
深忆病人 2020-12-02 17:11

How do you add a \'keyword\' to the GEdit list of keywords? I basiclly want to make the printf function look like a keyword.

printf(\"Hello World\\n\");
         


        
2条回答
  •  误落风尘
    2020-12-02 17:53

    Thanks to Jeremy's post I found this page: http://projects.gnome.org/gtksourceview/documentation.html

    Here you'll find a link to both a tutorial and the official reference for the language definition files.

    update: Another useful link http://wiki.gnome.org/Apps/Gedit/NewLanguage

提交回复
热议问题