summaryrefslogtreecommitdiff
path: root/context/data/scite/scite-context-readme.tex
blob: 58c15da20a7f4793a76f9778b5e97f74de2790c0 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
\starttext

The following files are needed for the lpeg based lexer:

\starttyping
scite-ctx.lua
scite-context.properties
scite-pragma.properties
scite-ctx-context.properties
scite-ctx-example.properties
lezers/context.lua
lezers/metafun.lua
lezers/scite-context-lexer.lua
lexers/context/mult-def.lua
lexers/context/mult-prm.lua
lexers/context/mult-mps.lua
lexers/themes/scite-context-theme.lua
\stoptyping

On windows you can copy al files including the subpaths to the path where
the scite binary lives.

If the \type {mult-*.lua} files are not in the archive but you can copy them
from the \CONTEXT\ distribution, where they live in:

\starttyping
<contextroot>/tex/texmf-context/tex/context/base
\stoptyping

Because property files can only be loaded from the same path you need to copy
the following files:

\starttyping
scite-context.properties
scite-pragma.properties
scite-ctx-context.properties
scite-ctx-example.properties
\stoptyping

to (on windows):

\starttyping
c:/Users/YourName
\stoptyping

Next you need to add this to:

\starttyping
import scite-context
import scite-pragma
\stoptyping

to the file:

\starttyping
SciTEUser.properties
\stoptyping

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:

\starttyping
% language=uk
\stoptyping

In this case the following file is needed:

\starttyping
spell-uk.txt
\stoptyping

This file is searched on the the path determined by the environment variable:

\starttyping
CTXSPELLPATH
\stoptyping

\stoptext