UDL Coloring From Selected Theme?
-
Is there no way to create a UDL that inherits its’ syntax coloring from the selected NP++ theme? If it is possible, please enlighten me; setting hard colors in the UDL itself makes it impossible to have the UDL’s syntax highlighting look decent across different themes.
Thanks!
-
@Duane-Doutel: welcome to the Notepad++ Community.
The UDL is completely separate from the selected theme. As far as I know, it uses a separate engine, and doesn’t know how to inherit from the theme. Sorry.
As a workaround, @ekopalypse has customized a PythonScript which will add extra highlighting to a given lexer based on the regular expressions listed. (An example is the perl customization that he published in #111 of this thread.) I don’t know whether that script can be customized to use theme-based colors or not. Now that I’ve tagged him, he’s more likely to notice and pipe in with a response.
-
I was Afraid of that. Ah, well, I was looking to help a friend new to the world of programmer’s editors out with a UDL for an obscure language. He’ll just have to make do with the default theme while working with it. Thanks for your time!
-
@Duane-Doutel said:
UDL for an obscure language. He’ll just have to make do with the default theme while working with it.
Or he can customize the UDL’s colors to match a single theme that he commonly uses.