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...
It is currently September 25th, 2023, 2:08 am
RainLexer 2.20.0 (syntax highlighter for Notepad++)
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
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.
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
So you are using the 32bit version of Notepad++ ?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.
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
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.
https://github.com/poiru/rainlexer/
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]
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: RainLexer 2.4.0 (syntax highlighter for 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 –
so I think this issues is caused by using older third party code in rainlexer.Upgrade Scintilla from v3.56 to v4.14.
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
These are files I have changed.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.
https://github.com/poiru/rainlexer/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]
File removed.
Last edited by oZone on November 18th, 2019, 3:24 pm, edited 1 time in total.
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
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]
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
This is what I have for the project files in C:\RainLexer\RainLexer
You do not have the required permissions to view the files attached to this post.
-
- Posts: 154
- Joined: May 14th, 2018, 4:46 pm
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
I think I forgot to include sln file.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]
Here is zip file with everything.
File removed
Last edited by oZone on November 23rd, 2019, 6:41 pm, edited 1 time in total.
-
- Developer
- Posts: 22590
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)
That seems to help... I still get a "warning",
But it does "build". Let me test it with 32bit and 64bit Notepad++ and see what happens.
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]