forked from XhmikosR/notepad2-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
75 lines (52 loc) · 3.07 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
=======================================================================
= =
= =
= Notepad2 - light-weight Scintilla-based text editor for Windows =
= =
= =
= Notepad2 4.2.25 =
= (c) Florian Balmer 2004-2011 =
= http://www.flos-freeware.ch =
= =
= =
=======================================================================
The Notepad2 Source Code
This package contains the full source code of Notepad2 4.2.25 for
Windows. Project files for Visual C++ 7.0 are included. Chances are
that Notepad2 can be rebuilt with other development tools, including
the free Visual C++ Express Edition, but I haven't tested this.
Rebuilding from the Source Code
Notepad2 4.2.25 is based on Scintilla 2.24 [1].
[1] http://www.scintilla.org
To be able to rebuild Notepad2, the source code of the Scintilla
editing component has to be unzipped to the "scintilla" subdirectory
of the Notepad2 source code directory.
Many of the Scintilla lexing modules are not used by Notepad2. Run
LinkLex.js to adapt the list (in "scintilla/src/Catalogue.cxx") and
make linking work properly.
Creating a Compact Executable Program File
Linking to the system CRT slightly improves disk footprint, memory
usage and startup because the pages for the system CRT are already
loaded and shared in memory. To achieve this, the release version of
Notepad2.exe is built using the Windows Driver Kit (WDK) 7.1.0 tools,
available as a free download from Microsoft. The appropriate build
scripts can be found in the "wdkbuild" subdirectory. Set %WDKBASEDIR%
to the directory of the WDK tools on your system.
How to add or modify Syntax Schemes
The Scintilla documentation has an overview of syntax highlighting,
and how to write your own lexing module, in case the language you
would like to add is not currently supported by Scintilla.
Add your own lexer data structs to the global pLexArray (Styles.c),
then adjust NUMLEXERS (Styles.h) to the new total number of syntax
schemes. Include the "scintilla/lexers/Lex*.cxx" file required for
your language into your project. Ensure the new module is initialized
(in "scintilla/src/Catalogue.cxx"), either by manually uncommenting
the corresponding LINK_LEXER() macro call, or by updating and
re-running LinkLex.js.
Copyright
See License.txt for details about distribution and modification.
If you have any comments or questions, please drop me a note:
florian.balmer@gmail.com
(c) Florian Balmer 2004-2011
http://www.flos-freeware.ch
###