tex: highlight fmt keywords
This commit is contained in:
parent
fcec436ae0
commit
6b6471e42f
@ -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}
|
||||||
|
Reference in New Issue
Block a user