[Geany-Users] Highlight C function names?

Lex Trotman elextr at xxxxx
Sat Jan 11 04:30:11 UTC 2014


On 11 January 2014 13:21, Nate Bargmann <n0nb at n0nb.us> wrote:

> As I use Geany for C work, one enhancement to the syntax highlighting
> would be to have C function names highlighted.  This would be any
> symbol, other than a C language keyword such as do, if, else, while,
> etc. that often have an open parenthesis following them and are already
> highlighted.
>
> For example, main() would have the word "main" highlighted but not the
> paratheses.  Or, foo(bar(a, (b * x))) would have the words "foo" and "bar"
> highlighted, and the parentheses, operators, and arguments would be in
> the current colors.
>
> Perhaps this is a limitation of the Scintilla editor?
>

You are correct that the first step would be to make Scintilla's C lexer
identify function calls as separate entities that can be highlighted. (and
an option to turn this off as well)

Cheers
Lex


>
> This would really help when dealing with source that uses libraries such
> as Gtk+ with many long function names on line after line.
>
> Thanks!
>
> - Nate
>
> --
>
> "The optimist proclaims that we live in the best of all
> possible worlds.  The pessimist fears this is true."
>
> Ham radio, Linux, bikes, and more: http://www.n0nb.us
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20140111/25f92b74/attachment.html>


More information about the Users mailing list