Hi all,
For my highlighting C code, I'd like to have open and close curly braces a different colour to the parentheses, square braces and other stuff.
Is this possible?
Cheers, Erik
Am Sonntag, den 01.08.2010, 22:16 +1000 schrieb Erik de Castro Lopo:
Hi all,
For my highlighting C code, I'd like to have open and close curly braces a different colour to the parentheses, square braces and other stuff.
Is this possible?
Sure, you just need to edit your ~/.config/geany/filedefs/filetypes.common accordingly. If see comments there aren't enough for you, there are also some hints in the manual about that file at [1].
Best Regards, Dominic
[1] http://www.geany.org/manual/current/index.html#special-file-filetypes-common
Dominic Hopf wrote:
Am Sonntag, den 01.08.2010, 22:16 +1000 schrieb Erik de Castro Lopo:
Hi all,
For my highlighting C code, I'd like to have open and close curly braces a different colour to the parentheses, square braces and other stuff.
Is this possible?
Sure, you just need to edit your ~/.config/geany/filedefs/filetypes.common accordingly. If see comments there aren't enough for you, there are also some hints in the manual about that file at [1].
I've played around quite extensively with a custom filetypes.common and read that section of the manual.
What I'd like is to have curly braces a different colour than parentheses/square braces and I don't see a way to do that. It seems that all three of thes braces/parentheses have the colour specified for 'operator'. Maybe I've missed something.
Cheers, Erik
On 2 August 2010 08:44, Erik de Castro Lopo mle+tools@mega-nerd.com wrote:
Dominic Hopf wrote:
Am Sonntag, den 01.08.2010, 22:16 +1000 schrieb Erik de Castro Lopo:
Hi all,
For my highlighting C code, I'd like to have open and close curly braces a different colour to the parentheses, square braces and other stuff.
Is this possible?
Sure, you just need to edit your ~/.config/geany/filedefs/filetypes.common accordingly. If see comments there aren't enough for you, there are also some hints in the manual about that file at [1].
I've played around quite extensively with a custom filetypes.common and read that section of the manual.
What I'd like is to have curly braces a different colour than parentheses/square braces and I don't see a way to do that. It seems that all three of thes braces/parentheses have the colour specified for 'operator'. Maybe I've missed something.
Cheers, Erik
Hi Erik,
Unfortunately Scintila which is the editing component used by Geany does not allow any distinction between types of operators. To add this you would have to edit the C++ code in Scintilla that parses the file for highlighting.
Cheers Lex
--
Erik de Castro Lopo http://www.mega-nerd.com/ _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Lex Trotman wrote:
Unfortunately Scintila which is the editing component used by Geany does not allow any distinction between types of operators. To add this you would have to edit the C++ code in Scintilla that parses the file for highlighting.
Thanks for the info Lex.
Cheers, Erik