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 off list.
---------- Forwarded message ---------- From: Lex Trotman elextr@gmail.com Date: 29 July 2013 16:39 Subject: Re: [Geany-Devel] wordchars in filetypes.r To: Steven Blatnick steve8track@yahoo.com
On 29 July 2013 16:13, Steven Blatnick steve8track@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:
val SCE_PL_HERE_Q=23 val SCE_PL_HERE_QQ=24 val SCE_PL_HERE_QX=25 val SCE_PL_STRING_Q=26 val SCE_PL_STRING_QQ=27 val SCE_PL_STRING_QX=28 val SCE_PL_STRING_QR=29 val SCE_PL_STRING_QW=30 val SCE_PL_STRING_VAR=43 val SCE_PL_BACKTICKS_VAR=57 val SCE_PL_HERE_QQ_VAR=61 val SCE_PL_HERE_QX_VAR=62 val SCE_PL_STRING_QQ_VAR=64 val SCE_PL_STRING_QX_VAR=65 val SCE_PL_STRING_QR_VAR=66
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 error :).
You should never edit the system files since they will be overridden when you next upgrade Geany.
Cheers Lex
Steve
Sent from Yahoo! Mail on Android
- From: * Lex Trotman elextr@gmail.com;
- To: * Geany development list devel@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@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.
Cheers Lex
Sent from Yahoo! Mail on Android