<p>I like to find the best way to let the user specify colors, e.g. by config, theme or whatever (I am talking about colors for text highlighting here not the UI parts outside the editor widget). The colorschemes seem to do the job.</p>
<p>Looking at <code>highlight.c</code> it seems that every style specified in a colorscheme is loaded to the hash <code>named_style_hash</code>. How can a plugin access a style by its key name?</p>
<p>I only found this API call for querying a style but it does not look like it is allowing individual styles:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">const</span> GeanyLexerStyle *<span class="pl-en">highlighting_get_style</span>(gint ft_id, gint style_id);</pre></div>
<p>Thanks for all answers in advance.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2331?email_source=notifications&email_token=AAIOWJ5XWGGWZN5GEFUK2SLQMOOLPA5CNFSM4I4NVMR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HO6BVJQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6GKZZI5CM3OKHACLTQMOOLPANCNFSM4I4NVMRQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7UW7JFNHWEYVCOL3TQMOOLPA5CNFSM4I4NVMR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HO6BVJQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2331?email_source=notifications\u0026email_token=AAIOWJ5XWGGWZN5GEFUK2SLQMOOLPA5CNFSM4I4NVMR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HO6BVJQ",
"url": "https://github.com/geany/geany/issues/2331?email_source=notifications\u0026email_token=AAIOWJ5XWGGWZN5GEFUK2SLQMOOLPA5CNFSM4I4NVMR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HO6BVJQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>