[Github-comments] [geany/geany] highlighting: added API call to query GeanyLexerStyle by name (#2336)
LarsGit223
notifications at xxxxx
Thu Oct 3 17:47:24 UTC 2019
This PR adds a new API call to ```highlighting.c```:
``` C
const GeanyLexerStyle *highlighting_get_named_style(const gchar *named_style);
```
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.
Also see the discussion at https://github.com/geany/geany/issues/2331.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2336
-- Commit Summary --
* highlighting: added API call to query GeanyLexerStyle by name
-- File Changes --
M src/highlighting.c (24)
M src/highlighting.h (2)
M src/plugindata.h (2)
-- Patch Links --
https://github.com/geany/geany/pull/2336.patch
https://github.com/geany/geany/pull/2336.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2336
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191003/9376e520/attachment.html>
More information about the Github-comments
mailing list