I have cloned the original repo and published changes to support publishing the app in the windows store. This is required to get notepad++ running on Win10s devices. You can find it instore at: https://www.microsoft.com/store/apps/9PLHC123MQWT
Current list of changes:
- Removal of the run Diag (you cant open a command prompt on 10s) - see https://github.com/WoofyIO/notepad-plus-plus/blob/master/PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.rc for most of the required changes.
- Added the NightRise LLC codesign cert for validation - see https://github.com/WoofyIO/notepad-plus-plus/blob/master/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp
- Edited https://github.com/WoofyIO/notepad-plus-plus/blob/master/appveyor.yml to support building and packaging with makeappx.
- The packaging directory, including binary plugins and config files is here: https://github.com/WoofyIO/notepad-plus-plus/tree/master/NightRise.NotepadWrapped
Packaging notes - originally the following applied. Now please see Appveyor for autobuild instructions:
- Genuine app was downloaded and unzipped (non-installer version)
- the exe was recompiled with listed changes above
- exe was replaced in the original app unzipped location
- app was packaged using Desktop App Converter (https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter) - see https://github.com/WoofyIO/notepad-plus-plus/wiki/(Re)Packaging-Instructions
- app is published to the store here: https://www.microsoft.com/store/apps/9PLHC123MQWT
All credit to the original team, especially @donho. All licences stay the same (GPL unless otherwise stated).
Notepad++ is a free (free as in both "free speech" and "free beer") source code editor and Notepad replacement that supports several programming languages and natural languages. Running in the MS Windows environment, its use is governed by GPL License.
There are two components that need to be built separately:
notepad++.exe
: (depends onSciLexer.dll
)SciLexer.dll
: (with nmake)
You can build Notepad++ with or without Boost - The release build of Notepad++ is built with Boost.
Since Notepad++
version 6.0, the build of SciLexer.dll
that is distributed
uses features from Boost's Boost.Regex
library.
You can build SciLexer.dll without Boost, ie. with its default POSIX regular expression support instead of boost's PCRE one. This is useful if you would like to debug Notepad++, but don't have boost.
- Open
PowerEditor\visual.net\notepadPlus.vcxproj
- Build Notepad++ like a normal Visual Studio project.
Here are the instructions to build SciLexer.dll (for both 32-bit & 64-bit) for Notepad++:
- Download the Boost source code.
v1.55 should be used with VS 2013. Then unzip it. In my case,
boost_1_55_0
is copied inC:\sources\
- Go to
scintilla\boostregex\
then run BuildBoost.bat with your boost path. In my case:BuildBoost.bat C:\sources\boost_1_55_0
If you are compiling a 64 bit Scintilla under your VS2013 x64 Native tool command prompt, add-x64
flag. In my case:BuildBoost.bat C:\sources\boost_1_55_0 -x64
- Go in
scintilla\win32\
then runnmake -f scintilla.mak
This will work with notepad++.exe
, however some functionality in Notepad++ will be broken.
To build SciLexer.dll without PCRE support (for both 32-bit & 64-bit):
-
For 32-bit, open a command prompt for building (a.k.a. the Developer Command Prompt for VS2013)
- From the IDE, you can do this by right clicking on a file in Solution Explorer, and clicking "Open Command Prompt". This will open up a command prompt with all the proper environment variables.
- From the Windows Start screen/menu, type
Developer Command Prompt for VS2013
, and click/select the result. - From an already open command prompt, run
vcvarsall.bat
(e.g. "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat").
For 64-bit, open VS2013 x64 Native tool command prompt.
-
Change directory (
cd
orpushd
) toscintilla\win32\
-
Build
SciLexer.dll
with one of the following commands:nmake NOBOOST=1 -f scintilla.mak
(normal build)nmake NOBOOST=1 DEBUG=1 -f scintilla.mak
(debugging build)
-
Copy
SciLexer.dll
fromscintilla\bin\
to the same directory asnotepad++.exe
.- For the
Unicode Release
configuration, the output directory (wherenotepad++.exe
is) isPowerEditor\bin\
. - For the
Unicode Debug
configuration, the output directory (wherenotepad++.exe
is) isPowerEditor\visual.net\Unicode Debug\
.
- For the
See the Notepad++ official site for more information.