File: codehigh.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (55 lines) | stat: -rw-r--r-- 1,191 bytes parent folder | download
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
# codehigh package
# Matthew Bertucci 2022/04/30 for v2022E

#include:expl3
#include:l3benchmark
#include:catchfile
#include:xcolor
#include:ninecolors
#include:varwidth
#include:iftex

\begin{codehigh}#V
\begin{codehigh}[options%keyvals]#V
\end{codehigh}
\begin{demohigh}
\begin{demohigh}[options%keyvals]
\end{demohigh}
\CodeHigh{options%keyvals}
\dochighinput{file}#i
\dochighinput[options%keyvals]{file}#i

\NewCodeHighEnv{envname}{options%keyvals}#N
\NewCodeHighInput{command}{options%keyvals}#d

#keyvals:\begin{codehigh},\begin{demohigh},\CodeHigh,\dochighinput
language=#latex,latex/latex2,latex/latex3,latex/math,latex/table
style/main=#%color
style/code=#%color
style/demo=#%color
boxsep=##L
lite#true,false
long#true,false
demo#true,false
theme=%<theme%>
#endkeyvals

\AddCodeHighRule{type}{name}{regex%definition}
\AddCodeHighRule[language]{type}{name}{regex%definition}
\SetCodeHighStyle{type}{color}
\SetCodeHighStyle[theme]{type}{color}
\GetCodeHighStyle{type}
\GetCodeHighStyle[theme]{type}

\SetCodeHighTracing{options%keyvals}

#keyvals:\SetCodeHighTracing
+code
-code
+demo
-demo
+parser
-parser
all
none
#endkeyvals