[Geany-Devel] Fwd: wordchars in filetypes.r
elextr at xxxxx
Wed Jul 31 00:38:08 UTC 2013
Originally sent only to Steven only by accident.
Note to him and his email client settings, when you reply to a list mail,
reply to the list *only*, if you reply to the list and an individual, their
mailer may choose to reply to you only, thus having the conversation fall
---------- Forwarded message ----------
From: Lex Trotman <elextr at gmail.com>
Date: 29 July 2013 16:39
Subject: Re: [Geany-Devel] wordchars in filetypes.r
To: Steven Blatnick <steve8track at yahoo.com>
On 29 July 2013 16:13, Steven Blatnick <steve8track at yahoo.com> wrote:
> Sweet! I've changed some syntax highlighting colors, but I didn't realize
> the word def was in there too.
> Is there a way to add highlighting to variables and escape sequences
> within a string? For example (perl):
> print "My name is $name\n";
> Where $name and/or \n are highlighted with a different color within a
> string. Also, I'm not at my computer, but many editors struggle with perl
> strings as they can be delimeted quite liberally, like qq~this~. I'll have
> to see if geany has some of those issues when I get a chance.
> Maybe these are scintilla issues though?
There are a bunch of pieces of string syntax detected by the perl lexer:
Some of these might be the items you are looking for.
The thing to do is to add "style number of the character at the cursor" to
the status bar by editing your statusbar template (see the docs :).
When you find what the interpolated variable is styled as, then you can
check in highlightingmappings.h what string that style is mapped to, and
then set it to whatever you want in your user filetypes.perl file. So
Matthew doesn't shout at me I should add you should set it to a named style
from your colour scheme, not a hardcoded colour :)
If the syntax you want isn't detected, ie it has the style number of the
rest of the string, then its a scintilla problem (feature request?).
Thanks for telling me word definitions are settable.
Basically anything that is settable in the system filetypes files can be
overridden in the user filetype files, if it doesn't its a bug (or a user
You should never edit the system files since they will be overridden when
you next upgrade Geany.
> Sent from Yahoo! Mail on Android
> * From: * Lex Trotman <elextr at gmail.com>;
> * To: * Geany development list <devel at lists.geany.org>;
> * Subject: * Re: [Geany-Devel] wordchars in filetypes.r
> * Sent: * Mon, Jul 29, 2013 5:57:03 AM
> On 29 July 2013 15:45, Steven Blatnick <steve8track at yahoo.com> wrote:
>> Personally I wish ctrl+left/right and double clicking would not include _
>> as word chars so I have the granularity I'm used to, even though I guess
>> including underscore would be more correct for "words".
>> Could this be one of those tweakable miscilaneous properties so different
>> people could set it how they like? (Like the "show scribble" checkbox, etc)
> Hi Steven,
> You can already tweak it since you can have edited entries in your
> personal filetypes.xxx which override the system ones.
>> Sent from Yahoo! Mail on Android
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel