Color syntax for Ruby breaks when %= is encountered
-
Hey,
For some reason when Notepad++ sees %=, it can’t figureout how to highlight stuff properly (as seen below
How do I fix this?
-
@ice7512
Can you post the debug-info from the ? menu, the last menu item?
Which language do you use? -
@Ekopalypse
I am using Ruby.Here is the debug info:
Notepad++ v7.8.6 (64-bit)
Build time : Apr 21 2020 - 15:23:03
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 1909
OS Build : 18363.836
Plugins : mimeTools.dll NppConverter.dll NppExport.dll -
quick info before I have to go back to work.
Can confirm the behavior with my installation as well.
Will check later if there is something which can be done to solve it unless someone else already jumped in. -
@Ekopalypse Thanks
-
-
@Ekopalypse Is there anything I can locally do on my machine to prevent this from happening?
-
What you might try is to use something like this,
which means that you need to install the PythonScript plugin.
The limitation of this technique is that you can only define foreground colors,
and if you have really large source code files with lines > 10_000 and you fold a lot of code,
it will slow down your typing experience.I use this every day with Python code, but my files usually don’t exceed 1_000 lines of code.
Other then that, you have to build npp and scintilla yourself and make the fixes in Ruby lexer.
-
Is there anything I can locally do on my machine to prevent this from happening?
As a longer term solution you can try to get the Scintilla people to have another look at it.
-
@Ekopalypse Thanks