diff --git a/dev/latex/hgblistings.sty b/dev/latex/hgblistings.sty index dfe8c2ab..f58f080c 100644 --- a/dev/latex/hgblistings.sty +++ b/dev/latex/hgblistings.sty @@ -406,6 +406,13 @@ keepspaces=true,% #1}}% {} +% Code Enivornmente for Scala +\lstnewenvironment{ScalaCode}[1][] +{\lstset{% + language=Scala, + escapeinside={/+}{+/}, % makes "/+" and "+/" available for Latex escapes (labels etc.) + #1}}% +{} % Language Definition and Code Environment for Swift \lstdefinelanguage{Swift} diff --git a/documents/HgbThesisTutorialDE/chapters/abbildungen.tex b/documents/HgbThesisTutorialDE/chapters/abbildungen.tex index a47639fa..450123be 100644 --- a/documents/HgbThesisTutorialDE/chapters/abbildungen.tex +++ b/documents/HgbThesisTutorialDE/chapters/abbildungen.tex @@ -743,6 +743,8 @@ \subsection{Formatierung von Programmcode} & \verb!...! \verb!\end{PhpCode}! \\ Python: & \verb!\begin{PythonCode}! & \verb!...! \verb!\end{PythonCode}! \\ + Scala: & \verb!\begin{ScalaCode}! + & \verb!...! \verb!\end{ScalaCode}! \\ Swift: & \verb!\begin{SwiftCode}! & \verb!...! \verb!\end{SwiftCode}! \\ XML: & \verb!\begin{XmlCode}! diff --git a/documents/HgbThesisTutorialEN/chapters/figures.tex b/documents/HgbThesisTutorialEN/chapters/figures.tex index 6f0576eb..94cc7213 100644 --- a/documents/HgbThesisTutorialEN/chapters/figures.tex +++ b/documents/HgbThesisTutorialEN/chapters/figures.tex @@ -726,6 +726,8 @@ \subsection{Formatting Program Code} & \verb!...! \verb!\end{PhpCode}! \\ Python: & \verb!\begin{PythonCode}! & \verb!...! \verb!\end{PythonCode}! \\ + Scala: & \verb!\begin{ScalaCode}! + & \verb!...! \verb!\end{ScalaCode}! \\ Swift: & \verb!\begin{SwiftCode}! & \verb!...! \verb!\end{SwiftCode}! \\ XML: & \verb!\begin{XmlCode}! diff --git a/documents/Manual/main.tex b/documents/Manual/main.tex index 3bac58d0..6a18880f 100644 --- a/documents/Manual/main.tex +++ b/documents/Manual/main.tex @@ -255,6 +255,7 @@ \subsection{Code environments (\texttt{hgblistings.sty})} \item \textbf{\texttt{ObjCCode}}: for ObjectiveC, \item \textbf{\texttt{PhpCode}}: for PHP, \item \textbf{\texttt{PythonCode}}: for Python, + \item \textbf{\texttt{ScalaCode}}: for Scala, \item \textbf{\texttt{Swift}}: for Swift, \item \textbf{\texttt{XmlCode}}: for XML. \end{itemize}