On Fri, Aug 24, 2012 at 8:37 PM, Lex Trotman <elextr@gmail.com> wrote:
On 24 August 2012 23:30, Robert Parker <rlp1938@gmail.com> wrote:
> Hi,
>
> When I edit a C program file in Geany, variable types such as mode_t and
> off_t are colored but the variable type size_t is not.
> What must I do to have size_t colored?
> My system is Ubuntu/Linux.

Hi,

Which version of Geany?  There were some changes made that I think
make size_t highlighted, but as a secondary keyword, not a type.
These might not be in the released version yet.

My version is 0.21. 

You correct answer would be to make a tag file that had size_t in it.

I was able to find 'secondary=' in /usr/share/geany/filetypes.c under '[keywords]' in that file.
So I copied it to .config/geany/flledefs/ and edited it as below:
secondary=size_t

I reloaded configuration and now 'size_t' has the same color as mode_t etc.

Thanks for your ideas.

Bob Parker


Regards
Lex

>
> Thanks,
> Bob Parker
>
>
> _______________________________________________
> Geany mailing list
> Geany@uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
_______________________________________________
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany



--
The healthy eating pyramid as published by the USDA and it's satellites all over the world is purposely designed to bring about an epidemic of obesity, hypertension and diabetes. It is wildly successful in this aim.