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
|
# codehigh package
# Matthew Bertucci 2025/02/21 for v2025C
#include:catchfile
#include:xcolor
#include:ninecolors
#include:varwidth
#include:iftex
\begin{codehigh}#V
\begin{codehigh}[options%keyvals]#V
\end{codehigh}
\begin{codehigh*}#V
\begin{codehigh*}[options%keyvals]#V
\end{codehigh*}
\begin{demohigh}
\begin{demohigh}[options%keyvals]
\end{demohigh}
\begin{demohigh*}#V
\begin{demohigh*}[options%keyvals]#V
\end{demohigh*}
\CodeHigh{options%keyvals}
\dochighinput{file}
\dochighinput[options%keyvals]{file}
\fakeverb{verbatim content%definition}
#keyvals:\begin{codehigh},\begin{codehigh*},\begin{demohigh},\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%>
visiblespace
#endkeyvals
# not documented
\NewCodeHighEnv{envname}{options%keyvals}#*N
\NewCodeHighInput{command}{options%keyvals}#*d
\AddCodeHighRule{type}{name}{regex%definition}#*
\AddCodeHighRule[language]{type}{name}{regex%definition}#*
\SetCodeHighStyle{type}{color}#*
\SetCodeHighStyle[theme]{type}{color}#*
\GetCodeHighStyle{type}#*
\GetCodeHighStyle[theme]{type}#*
\codehighspace#*
\SetCodeHighTracing{options%keyvals}#*
#keyvals:\SetCodeHighTracing
+code
-code
+demo
-demo
+parser
-parser
all
none
#endkeyvals
|