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

Reply via email to