EnhanceAnyLexer
EnhanceAnyLexer copied to clipboard
Enable syntax highlighting in config
I'm trying to enable RegEx syntax highlighting in the configuration using the configuration itself. Everything works if you open the config and pre-start Notepad++
But I found a very strange way to enable the highlighting without restarting:
- focus on the document, not the config
- switch off the plugin
- focus on config
- select any language
- Switch the plugin back on.
- select the language that should highlight the configuration
At this stage everything works except hex colors highlighting. If you switch the focus to the document and back to the config, the hex colors highlighting appears and the syntax highlighting disappears near the end of the config.
If the config shows the very first line, after switching focus to the document and back to the config, the hex colors remain white, but the document syntax highlighting works (I couldn't reproduce it on the video).
How does it work? When the plugin forces the syntax highlighting...?
https://youtu.be/wocC3n9vq2Y
Unfortunately, the configuration file is a special case. Whenever it is the active document, the actual function of the plugin is not available (disabled) for this document, but others, like highlighting matches in the other view when testing/creating regular expressions, are enabled.
I am currently working on the next version of the plugin and one change is that it will get a configuration dialog. That is, the configuration file no longer uses one of the two possible views that Notepad++ offers, but has its own Scintilla editor embedded in the dialog.