summaryrefslogtreecommitdiff
path: root/context/data/npp/context/notepad++.ini
blob: 50b02e294c1c595ed2fe7e849cbf9b690bc8dcac (plain)
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
# You can use the lexers that come with context and athat are meant for scite also for notepad++. On
# my machine I always install such a portable program in c:\data\system\notepadplusplus (avoiding
# funny characters).
#
# (1) Download a version of scintillua++ that matches the current version if notepad++ and unzip
#     the archive in a temporary place.
#
#     c:\data\notepadplusplus\*
#
# (2) Copy these two dlls::
#
#     c:\data\notepadplusplus\plugins\Scintillua++.dll
#     c:\data\notepadplusplus\plugins\Config\Scintillua++\LexLPeg.dll
#
# (3) Copy this file to:
#
#     c:\data\notepadplusplus\plugins\Config\Scintillua++.ini
#
# (4) Copy the files from the texmf/context/data/scite/context so that you get:
#
#     c:\data\notepadplusplus\plugins\Config\data\scite-context-data-*.lua
#     c:\data\notepadplusplus\plugins\Config\themes\scite-context-theme.lua
#     c:\data\notepadplusplus\plugins\Config\themes\lexer.lua
#     c:\data\notepadplusplus\plugins\Config\themes\scite-context-lexer.lua
#     c:\data\notepadplusplus\plugins\Config\themes\scite-context-lexer-*.lua
#
# Now you should get the standard context lexing for the file types mentioned below. I might add a few
# more (consistent) lexers. Beware: we don't use the lexer.lua file that ships with scintillua++. Among
# the reasons is that when I first played with this variant of lexing the scintillua implementation was
# quite slow, so I redid the code with some agressive optimization (in context a good test file is the
# character database file. There is still room for improvement. One problem with the lua lexer is that
# there is not much communication possible so that getting the state involves guesswork.
#
# Also, we already had lpeg based lexing in context so it made more sense to find some common ground so
# that I could share code (a bit of a hybrid approach). There are some extra features like showing
# invisible spaces and most noticeably spell checking (for more info see the manual).
#
# The lexer assumes that you have the dejavu mono fonts installed. These cover a wide repertoire of
# characters. Some features offered for scite won't be available because no additional menu items etc
# are defined.
#
# In due time some more configuration files will be added for notepad++. Maybe some more can be set up
# below.

theme=scite-context-theme
override=true

scite-context-lexer-tex=*.tex;*.mkii;*.mkiv;*.mkvi;*.mkix;*.mkxi
scite-context-lexer-xml=*.xml;*.xsl;*.xsd;*.fo;*.exa;*.rlb;*.rlg;*.rlv;*.rng;*.xfdf;*.xslt;*.dtd;*.lmx;*.htm;*.html;*.xhtml;*.ctx;*.export;*.svg;*.xul
scite-context-lexer-mps=*.mp;*.mpx
scite-context-lexer-lua=*.lua;*.luc;*.cld;*.tuc;*.luj;*.lum;*.tma;*.lfg;*.luv;*.lui
scite-context-lexer-txt=*.txt
scite-context-lexer-pdf=*.pdf
scite-context-lexer-web=*.w;*.ww
scite-context-lexer-cpp=*.h;*.c;*.hh;*.cc;*.hpp;*.cpp;*.hxx;*.cxx
scite-context-lexer-bibtex=*.bib
scite-context-lexer-sql=*.sql