summaryrefslogtreecommitdiff
path: root/context/data/scite/scite-context-readme.tex
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-09-17 10:40:15 +0300
committerMarius <mariausol@gmail.com>2011-09-17 10:40:15 +0300
commit32956188684f3f0bd1cc077a6870fdd57fea0cfc (patch)
tree740208d07a5e6ab91a5a30e723fcc3e93c83114f /context/data/scite/scite-context-readme.tex
parent0c9823815b15cad63d4b9827205a605192e8cd81 (diff)
downloadcontext-32956188684f3f0bd1cc077a6870fdd57fea0cfc.tar.gz
beta 2011.09.17 09:40
Diffstat (limited to 'context/data/scite/scite-context-readme.tex')
-rw-r--r--context/data/scite/scite-context-readme.tex50
1 files changed, 48 insertions, 2 deletions
diff --git a/context/data/scite/scite-context-readme.tex b/context/data/scite/scite-context-readme.tex
index a5d2ab084..3a6d673c5 100644
--- a/context/data/scite/scite-context-readme.tex
+++ b/context/data/scite/scite-context-readme.tex
@@ -1,5 +1,7 @@
\starttext
+\subject{Installing Scite}
+
Scite has built-in lexers as well as external lpeg based ones. We
can use both but for the external lexers some more work is needed
to get them running. As they are more advanced it's worth the
@@ -20,18 +22,54 @@ code.google.com/p/scintilla
On windows you need to copy the \type {lexers} subfolder to the \type
{wscite} folder. For Linux the place depends on the distribution.
+\subject{Extending Scite}
+
In the \CONTEXT\ distribution you find the relevant files in:
\starttyping
<contextroot>/tex/texmf-context/context/data/scite
\stoptyping
+The easy way is to copy all the files in that path to the path where
+the global properties files lives
+
+\starttyping
+SciteGlobal.properties
+\stoptyping
+
+At the end of that file (on windows it is in the path where the Scite
+binary) you then add a line to the end:
+
+\starttyping
+import scite-context-user
+\stoptyping
+
+You need to restart Scite in order to see if things work out as expected.
+
+Disabling the external lexer in a recent Scite is somewhat tricky. In that
+case the end of that file looks like:
+
+\starttyping
+imports.exclude=scite-context-external
+import *
+import scite-context-user
+\stoptyping
+
+In any case you need to make sure that the user file is loaded last.
+
+\subject{An alternative approach}
+
+If for some reason you prefer not to mess with property files in the main
+Scite path, you can follow a different route and selectively copy files to
+places.
+
The following files are needed for the lpeg based lexer:
\starttyping
lexers/scite-context-lexer.lua
lexers/scite-context-lexer-tex.lua
lexers/scite-context-lexer-mps.lua
+lexers/scite-context-lexer-lua.lua
lexers/scite-context-lexer-cld.lua
lexers/context/data/scite-context-data-tex.lua
@@ -62,8 +100,14 @@ files to the same path where the loading is defined:
\starttyping
scite-context.properties
+scite-context-internal.properties
+scite-context-external.properties
+
scite-pragma.properties
+scite-tex.properties
+scite-metapost.properties
+
scite-context-data-tex.properties
scite-context-data-context.properties
scite-context-data-interfaces.properties
@@ -72,8 +116,6 @@ scite-context-data-metafun.properties
scite-ctx.properties
scite-ctx-context.properties
-scite-ctx-context-internal.properties
-scite-ctx-context-external.properties
scite-ctx-example.properties
\stoptyping
@@ -101,6 +143,8 @@ SciTEUser.properties
Of course the pragma import is optional. You can comment either the
internal or external variant but there is no reason not to keep them both.
+\subject{Spell checking}
+
If you want to have spellchecking, you need have files with correct words
on each line. The first line of a file determines the language:
@@ -120,6 +164,8 @@ This file is searched on the the path determined by the environment variable:
CTXSPELLPATH
\stoptyping
+\subject{Interface selection}
+
In a similar fashion you can drive the interface checking:
\starttyping