<p>This PR adds a new API call to <code>highlighting.c</code>:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">const</span> GeanyLexerStyle *<span class="pl-en">highlighting_get_named_style</span>(<span class="pl-k">const</span> gchar *named_style);</pre></div>
<p>This shall enable plugins to query styles dedicated to plugin specific highlighting. Plugins could have their own styles with dedicated keys/names and instruct users to simply add them to a colorscheme. Another option would be a configuration setting in a plugin but then the setting is separated from the colorscheme which may result in bad readability.</p>
<p>Also see the discussion at <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="501091667" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2331" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2331/hovercard" href="https://github.com/geany/geany/issues/2331">#2331</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2336'>https://github.com/geany/geany/pull/2336</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>highlighting: added API call to query GeanyLexerStyle by name</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2336/files#diff-0">src/highlighting.c</a>
    (24)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2336/files#diff-1">src/highlighting.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2336/files#diff-2">src/plugindata.h</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2336.patch'>https://github.com/geany/geany/pull/2336.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2336.diff'>https://github.com/geany/geany/pull/2336.diff</a></li>
</ul>

<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/pull/2336?email_source=notifications&email_token=AAIOWJ2NGUGJR2JSX34WGATQMYV2ZA5CNFSM4I5GGL7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPPB7AQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3QSZ7N4YTZR3CLCKDQMYV2ZANCNFSM4I5GGL7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJZQ2N2HPMVRVUJXRNTQMYV2ZA5CNFSM4I5GGL7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPPB7AQ.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/pull/2336?email_source=notifications\u0026email_token=AAIOWJ2NGUGJR2JSX34WGATQMYV2ZA5CNFSM4I5GGL7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPPB7AQ",
"url": "https://github.com/geany/geany/pull/2336?email_source=notifications\u0026email_token=AAIOWJ2NGUGJR2JSX34WGATQMYV2ZA5CNFSM4I5GGL7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HPPB7AQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>