<div dir="ltr">Originally sent only to Steven only by accident.<div><br></div><div>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.<br>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Lex Trotman</b> <span dir="ltr"><<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>></span><br>Date: 29 July 2013 16:39<br>
Subject: Re: [Geany-Devel] wordchars in filetypes.r<br>To: Steven Blatnick <<a href="mailto:steve8track@yahoo.com">steve8track@yahoo.com</a>><br><br><br><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">
<div class="im">On 29 July 2013 16:13, Steven Blatnick <span dir="ltr"><<a href="mailto:steve8track@yahoo.com" target="_blank">steve8track@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr>

<td valign="top"><p>Sweet! I've changed some syntax highlighting colors, but I didn't realize the word def was in there too.</p>
<p>Is there a way to add highlighting to variables and escape sequences within a string?  For example (perl):</p>
<p>print "My name is $name\n";</p>
<p>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.</p>


<p>Maybe these are scintilla issues though?</p></td></tr></tbody></table></blockquote><div><br></div></div><div>There are a bunch of pieces of string syntax detected by the perl lexer:</div><div><br></div><div><div>val SCE_PL_HERE_Q=23</div>

<div>val SCE_PL_HERE_QQ=24</div><div>val SCE_PL_HERE_QX=25</div><div>val SCE_PL_STRING_Q=26</div><div>val SCE_PL_STRING_QQ=27</div><div>val SCE_PL_STRING_QX=28</div><div>val SCE_PL_STRING_QR=29</div><div>val SCE_PL_STRING_QW=30</div>

<div>val SCE_PL_STRING_VAR=43<br></div><div>val SCE_PL_BACKTICKS_VAR=57<br></div><div>val SCE_PL_HERE_QQ_VAR=61</div><div>val SCE_PL_HERE_QX_VAR=62</div><div>val SCE_PL_STRING_QQ_VAR=64</div><div>val SCE_PL_STRING_QX_VAR=65</div>

<div>val SCE_PL_STRING_QR_VAR=66</div></div><div> </div><div>Some of these might be the items you are looking for.  </div><div><br></div><div>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 :).</div>

<div><br></div><div>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 :)</div>

<div><br></div><div>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?).</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top">
<p>Thanks for telling me word definitions are settable.</p></td></tr></tbody></table></blockquote><div><br></div></div><div>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 :).</div>

<div><br></div><div>You should never edit the system files since they will be overridden when you next upgrade Geany.</div><div><br></div><div>Cheers</div><span class="HOEnZb"><font color="#888888"><div>Lex</div></font></span><div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top">
<p>Steve</p><div>
<p>Sent from Yahoo! Mail on Android</p>
</div></td></tr></tbody></table>            <div>
                <div>
                    <br>
                    <div>
                        <div style="font-size:0.9em">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold">From:</span>
                            </b>
                            Lex Trotman <<a href="mailto:elextr@gmail.com" target="_blank">elextr@gmail.com</a>>;                            <br>
                            <b>
                                <span style="font-weight:bold">To:</span>
                            </b>
                            Geany development list <<a href="mailto:devel@lists.geany.org" target="_blank">devel@lists.geany.org</a>>;                                                                                                     <br>

<div>
                            <b>
                                <span style="font-weight:bold">Subject:</span>
                            </b>
                            Re: [Geany-Devel] wordchars in filetypes.r                            <br>
                            </div><b>
                                <span style="font-weight:bold">Sent:</span>
                            </b>
                            Mon, Jul 29, 2013 5:57:03 AM                            <br>
                        </div><div><div>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 July 2013 15:45, Steven Blatnick <span dir="ltr"><<a rel="nofollow">steve8track@yahoo.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr>

<td valign="top"><p>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".</p>



<p>Could this be one of those tweakable miscilaneous properties so different people could set it how they like? (Like the "show scribble" checkbox, etc)</p></td></tr></tbody></table></blockquote><div><br></div>


<div>Hi Steven,</div><div><br></div><div>You can already tweak it since you can have edited entries in your personal filetypes.xxx which override the system ones.</div><div><br></div><div>Cheers</div><div>Lex</div><div><br>


</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0">

<tbody><tr><td valign="top">
<p>Sent from Yahoo! Mail on Android</p>
</td></tr></tbody></table>            <div>
                <div><br></div></div></blockquote></div></div></div></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div></div></div>
                </div>
            </div>
</blockquote></div></div><br></div></div>
</div><br></div></div>