1
0

tex: highlight fmt keywords

This commit is contained in:
surtur 2023-08-18 17:53:29 +02:00
parent fcec436ae0
commit 6b6471e42f
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -311,6 +311,7 @@ addition to anything the base \texttt{slog.Logger} offers.
\begin{lstlisting}[language=Go, caption={Example formatting expression supplied \begin{lstlisting}[language=Go, caption={Example formatting expression supplied
to the logger}, label=goFmtExpression, basicstyle=\linespread{0.9}\small\ttfamily, to the logger}, label=goFmtExpression, basicstyle=\linespread{0.9}\small\ttfamily,
backgroundcolor=\color{lstbg}, backgroundcolor=\color{lstbg},
otherkeywords={\%s, \%q, \%v},
] ]
slogger.Debugf("operation %q for user %q completed at %s", op, usr.ID, time.Now()) slogger.Debugf("operation %q for user %q completed at %s", op, usr.ID, time.Now())
\end{lstlisting} \end{lstlisting}