It is currently March 29th, 2024, 1:21 pm

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

Added the new "default" options for the [Rainmeter] section of the skin

https://forum.rainmeter.net/viewtopic.php?f=127&t=6336&p=40071#p40071

Note that this still requires the 64bit version of Notepad++. We have not yet figured out what they did to break 32bit...
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 16th, 2019, 4:31 pm Note that this still requires the 64bit version of Notepad++. We have not yet figured out what they did to break 32bit...
I think you need to update files in ThirdParty\Scintilla\

I just did "dirty" copy&paste from https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/scintilla (folders include and lexlib),
quick prototyping, so code can be compiled.

So far, so good plugin doesn't crash.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

oZone wrote: November 18th, 2019, 2:39 pm I think you need to update files in ThirdParty\Scintilla\

I just did "dirty" copy&paste from https://github.com/notepad-plus-plus/notepad-plus-plus/tree/master/scintilla (folders include and lexlib),
quick prototyping, so code can be compiled.

So far, so good plugin doesn't crash.
So you are using the 32bit version of Notepad++ ?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

I replaced the include and lexlib folders in ThirdParty\Scintilla\ using that new version from GitHub, and when I build it with build.bat, I just get a boatload of errors. Must be something else I need to do.

Code: Select all

C:\RainLexer\RainLexer\Lexer.h(34,1): error C2504:  'ILexer': base class undefined (compiling source file Lexer.cpp) [C
:\RainLexer\RainLexer\RainLexer.vcxproj]
https://github.com/poiru/rainlexer/
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 2:44 pm So you are using the 32bit version of Notepad++ ?
Yes, but as said I did only quick prototyping so I don't know if broke something.

But for now it's working good.

The issue started with notepad++ 7.7. (https://notepad-plus-plus.org/downloads/v7.7/) and looking through release notes for that version –
Upgrade Scintilla from v3.56 to v4.14.
so I think this issues is caused by using older third party code in rainlexer.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 2:56 pm I replaced the include and lexlib folders in ThirdParty\Scintilla\ using that new version from GitHub, and when I build it with build.bat, I just get a boatload of errors. Must be something else I need to do.

Code: Select all

C:\RainLexer\RainLexer\Lexer.h(34,1): error C2504:  'ILexer': base class undefined (compiling source file Lexer.cpp) [C
:\RainLexer\RainLexer\RainLexer.vcxproj]
https://github.com/poiru/rainlexer/
These are files I have changed.
File removed.
Last edited by oZone on November 18th, 2019, 3:24 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

oZone wrote: November 18th, 2019, 3:06 pm These are files I have changed.
Lexer.zip
Still something in the project files that it doesn't like...

Code: Select all

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429
,5): error MSB6006: "CL.exe" exited with code 2. [C:\RainLexer\RainLexer\RainLexer.vcxproj]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

This is what I have for the project files in C:\RainLexer\RainLexer
project.zip
You do not have the required permissions to view the files attached to this post.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 3:18 pm Still something in the project files that it doesn't like...

Code: Select all

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429
,5): error MSB6006: "CL.exe" exited with code 2. [C:\RainLexer\RainLexer\RainLexer.vcxproj]
I think I forgot to include sln file.
Here is zip file with everything.
File removed
Last edited by oZone on November 23rd, 2019, 6:41 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

That seems to help... I still get a "warning",

Code: Select all

C:\RainLexer\RainLexer\Lexer.cpp(93,23): warning C4267:  'initializing': conversion from 'size_t' to 'int', possible lo
ss of data [C:\RainLexer\RainLexer\RainLexer.vcxproj]
C:\RainLexer\RainLexer\Lexer.cpp(427,62): warning C4267:  'initializing': conversion from 'size_t' to 'unsigned int', p
ossible loss of data [C:\RainLexer\RainLexer\RainLexer.vcxproj]
But it does "build". Let me test it with 32bit and 64bit Notepad++ and see what happens.