1. Download Notepad2_4.2.25_src.zip (here/here) and scintilla357.zip (here/here) to local
2. Create a new empty directory and name it, such as Notepad2, to extract the above 2 packets to the directory, as shown in
3. Double hit Open Notepad2.sln, will start VS2013, and prompt the project needs to be updated, click OK
VS2013 will generate a migration report-notepad2 and open with the default browser
4. Go to VS2013 and we will find that the Scintilla directory has been included in the
5. In the project, right-click Add, scintilla\src directory, Existing item
Add *.h and *.cxx to the Scintilla\src file directory, or some functions are not defined because of missing file hints
Add the Scintilla\win32 *.h and *.cxx to the scintilla\win32 in the same way
6. Run Lexlink.js, the script will not need to link in the scintilla\src\catalogue.cxx part of the comment
7. Build solution, prompting "error cvt1100:duplicate resource. Type:manifest, Name:1, language:0x0409"
after the online review, found that the problem is the resource ID duplication.
then open src\resource.h with a text editor, find the first line of idr_rt_manifest, change 1 to another value, such as
8. recompile, found in addition to the "GetVersion function is obsolete",
use "_crt_secure_no_warnings" to avoid the warning of some safe string functions
and "Warning lnk4075:ignoring '/editandcontinue ' due to '/SAFESEH ' specification" outside
No compile and link errors have been made, debug version Notepad2.exe has been successfully generated
Compiling Notepad2 (4.2.25) using VS2013 Update 4