style : make scode respect newlines.
This commit is contained in:
parent
7fb53f1339
commit
f0aa1fc0c9
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue