File: codebox.cwl

package info (click to toggle)
texstudio 4.8.9%2Bds-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 109,164 kB
  • sloc: cpp: 109,508; xml: 18,668; ansic: 8,977; python: 357; javascript: 177; sh: 147; makefile: 52
file content (65 lines) | stat: -rw-r--r-- 1,611 bytes parent folder | download | duplicates (2)
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
# codebox package
# Matthew Bertucci 1/6/2022 for v1.0.3

#include:xtemplate
#include:l3keys2e
#include:fontawesome5
#include:tcolorbox
#include:tcolorboxlibraryskins
#include:tcolorboxlibrarybreakable
#include:tcolorboxlibraryminted
#include:tcolorboxlibrarylistings
#include:tikzlibraryshapes.geometric
#include:varwidth
#include:xcolor
#include:etoolbox

\begin{codebox}{title%text}#V
\begin{codebox}[options%keyvals]{title%text}#V
\end{codebox}
\begin{codebox*}{title%text}#V
\begin{codebox*}[options%keyvals]{title%text}#V
\end{codebox*}

\codefile{title%text}{file}
\codefile[options%keyvals]{title%text}{file}
\codefile*{title%text}{file}
\codefile*[options%keyvals]{title%text}{file}

\begin{codeview}{title%text}#V
\begin{codeview}[options%keyvals]{title%text}#V
\end{codeview}
\begin{codeview*}{title%text}#V
\begin{codeview*}[options%keyvals]{title%text}#V
\end{codeview*}

\cvfile{title%text}{file}
\cvfile[options%keyvals]{title%text}{file}
\cvfile*{title%text}{file}
\cvfile*[options%keyvals]{title%text}{file}

\codeset{options%keyvals}

#keyvals:\begin{codebox},\begin{codebox*},\codefile,\codefile*,\begin{codeview},\begin{codeview*},\cvfile,\cvfile*
minted#true,false
lang=%<source code lang%>
pretitle=%<title prefix%>
codestyle=%<highlight style%>
codesize=%<fontsize macro%>
comments=%<text%>
commentf=%<format macros%>
codestretch=%<factor%>
linenumsep=%<number%>
#endkeyvals

#keyvals:\begin{codeview},\begin{codeview*},\cvfile,\cvfile*
label=##l
#endkeyvals

\thecvcounter

cvgrayc#B
cvgray#B
cvgrayb#B
cvblue#B
chengse#B