style : make scode respect newlines.

This commit is contained in:
Dmitry Voronin 2023-07-31 22:20:20 +03:00
parent 7fb53f1339
commit f0aa1fc0c9

View file

@ -45,7 +45,7 @@
\newcommand{\scproperty}[1]{\textcolor{code_property}{#1}} % color code string.
\newcommand{\sckeyword} [1]{\textcolor{code_keyword}{#1}} % color code string.
\newcommand{\sccomment} [1]{\textcolor{code_comment}{#1}} % color code string.
\newenvironment{scode}{\begin{scodebox}\catcode32=12}{\end{scodebox}} % code block.
\newenvironment{scode}{\begin{scodebox}\catcode32=12\obeylines}{\end{scodebox}} % code block.
% settings.
\linespread{1.5} % height between non-breaking lines.