[Geany] HIghlighting questions

Lex Trotman elextr at xxxxx
Sun Aug 1 23:06:43 UTC 2010


On 2 August 2010 08:44, Erik de Castro Lopo <mle+tools at 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 at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>



More information about the Users mailing list