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");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GEdit uses GtkSourceView for its syntax highlighting. You should be able to find the
c.langfile it uses to highlight C code by typing a command like this: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
printfto.