From f2d61040c5d5346b07c52bf4be2e2dd7ca8a8f1d Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 25 Jan 2024 23:56:52 +0300 Subject: [PATCH] show spaces --- paper/sections/syntax.tex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper/sections/syntax.tex b/paper/sections/syntax.tex index 3eda89e071..1e1b45f4a3 100644 --- a/paper/sections/syntax.tex +++ b/paper/sections/syntax.tex @@ -157,14 +157,15 @@ \subsection{Indentation} (for example, there has to be exactly one space after the closing square bracket at the second line and the \ff{>} symbol, while two spaces will break the syntax): -\begin{ffcode*}{showspaces=true} +{\lstset{showspaces=true}\begin{ffcode} # This is a vector in 2D space |$\label{ln:comment}$| [dx dy] > vector |$\label{ln:vector}$| sqrt. > length |$\label{ln:length}$| plus. dx.times dx dy.timex dy |$\label{ln:length-end}$| |$\label{ln:vector-end}$| -\end{ffcode*} +\end{ffcode} +} The code at \lref{comment} is a \emph{comment}. Two \emph{free attributes} \ff{dx} and \ff{dy}