summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/context/data/npp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-19 23:04:15 +0000
committerKarl Berry <karl@freefriends.org>2017-04-19 23:04:15 +0000
commitf74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch)
tree3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/context/data/npp
parent1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff)
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/context/data/npp')
-rw-r--r--Master/texmf-dist/context/data/npp/context/notepad++.ini57
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/context/data/npp/context/notepad++.ini b/Master/texmf-dist/context/data/npp/context/notepad++.ini
new file mode 100644
index 00000000000..50b02e294c1
--- /dev/null
+++ b/Master/texmf-dist/context/data/npp/context/notepad++.ini
@@ -0,0 +1,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