There are two components that need to be built separately:
Textrument.exe
: ( Main Application )SciLexer.dll
: ( Runtime dependency )
I build them both with Visual Studio Community 2019.
doLocalConf.xml
: ( Indicates that user configuration should be stored in the installation path )User
: ( Folder for user-configurations )
Follow the original instructions to build boost first:
- Download the Boost source code.
- Unzip boost.
- Build regex of boost. With the version 1.70, launch
bootstrap.bat
under the boost root,b2.exe
will be generated beside ofbootstrap.bat
. For building boost PCRE lib, go into regex build directory by typingcd C:\sources\boost_1_70_0\libs\regex\build
then launchC:\sources\boost_1_70_0\b2.exe toolset=msvc link=static threading=multi runtime-link=static address-model=64 release stage
. Note that address-model=64 is optional if you want to build lib in 64 bits. For 32 bits build, just remove address-model=64 from the command line.
Then Open PowerEditor\visual.net\notepadPlus.vcxproj
.
Before build, make sure that the macro $(BOOST) is defined correctly in plugins/plugins_dev.props
.
If you are lazy, just copy the SciLexer.dll
kernel from the distribution package of Textrument or Notepad++.
You need to copy the property file as Project_Root/plugins/plugins_dev.props
.
A bunch of marco definitions need to be modified according to you environment.
To modify the props properties, go to View->Property Manager, just right click and edit the Macros. dont forget to save them.
-
scintilla : path to the scintilla module
-
PowerEditor : path to the PowerEditor module
-
PowerEditor : path to the PowerEditor module
-
BOOST : path to the boost root directory. ( required when building SciLexer.dll )
-
DLLOU : default plugin output path. (
Project_Root/PowerEditor\bin64\plugins\PluginName\PluginName.dll
) -
DLLOU_ : another plugin output path to test x32 output.
I use java scripts to sync language updates patch by patch.