Notepad++ plugin that adds an additional foreground colouring option for your text content. This means that you can define regular expressions to highlight parts of text/code, in addition to what standard lexers, such as those for Python, C, Rust, UDL ... do.
NOTE: An existing EnhanceAnyLexerConfig.ini is obsolete if you use version 0.5. This means that you must either rename the ini and let the plugin create a new one automatically or add the following two lines to the global section yourself.
regex_error_style_id=30
regex_error_color=0x756ce0
Of course, these values are configurable.
Some examples to show what can be done. Normal text, no lexers involved
Using the standard python lexer
and in addition using EnhanceAnyLexer plugin
This plugin is written in the programming language V and must therefore be available to build this plugin. Furthermore, a current version of the gcc compiler, >= version 10 recommended, must be installed. An example for the use with NppExec:
cd $(CURRENT_DIRECTORY)
set PROJECT=EnhanceAnyLexer
set VEXE=d:\programdata\compiler\v\v.exe
set ARCH=x64
set CC=gcc
set NPPPATH=D:\Tests\npp\812\$(ARCH)
set PLUGIN_DIR=$(NPPPATH)\plugins\$(PROJECT)
cmd /c if not exist $(PLUGIN_DIR) exit -1
if $(EXITCODE) == -1 then
cmd /c mkdir $(PLUGIN_DIR)
endif
set PLUGIN_PATH=$(PLUGIN_DIR)\$(PROJECT).dll
set COMPILER_FLAGS= -cc gcc -prod -d static_boehm -gc boehm -keepc -enable-globals -shared -d no_backtrace -cflags -static-libgcc
if $(ARCH)==x64 then
if $(CC)==gcc then
$(VEXE) -cc $(CC) $(COMPILER_FLAGS) -cflags -static-libgcc -o $(PLUGIN_PATH) .
endif
else
if $(CC)==gcc then
ENV_SET PATH=D:\ProgramData\Compiler\mingw32\bin
$(VEXE) -cc $(CC) -m32 -g $(COMPILER_FLAGS) -cflags -static-libgcc -o $(PLUGIN_PATH) .
ENV_UNSET PATH
endif
endif
Distributed under the MIT license. See LICENSE
for more information.