Color syntax for Ruby breaks when %= is encountered
For some reason when Notepad++ sees %=, it can’t figureout how to highlight stuff properly (as seen below
How do I fix this?
Can you post the debug-info from the ? menu, the last menu item?
Which language do you use?
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.
Seems to be a scintilla issue because the demo editor (SciTE)
is doing the same thing.
And after searching scintillas bug tracker I found this.
Not good news I’m afraid but please don’t shoot the messenger :-)
@Ekopalypse Is there anything I can locally do on my machine to prevent this from happening?
Ekopalypse last edited by Ekopalypse
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.
Alan Kilborn last edited by
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.