added lstlisting code example to the soft pink beamer layout

main
Isabell Pflug 2 years ago
parent 690cf8b3bb
commit 0aa5b40bb7

@ -43,7 +43,7 @@
\definecolor{keywords}{RGB}{255,0,90} \definecolor{keywords}{RGB}{255,0,90}
\definecolor{comments}{RGB}{60,179,113} \definecolor{comments}{RGB}{60,179,113}
\lstset{basicstyle=\footnotesize\ttfamily} \lstset{basicstyle=\footnotesize\ttfamily}
\lstset{language=Python, \lstset{language=[GNU]C++,
keywordstyle=\color{keywords}, keywordstyle=\color{keywords},
commentstyle=\color{comments}\emph} commentstyle=\color{comments}\emph}
@ -93,6 +93,23 @@ commentstyle=\color{comments}\emph}
The answer to everything... The answer to everything...
\end{frame} \end{frame}
%
% code frame
%
\section{C++ example Code}
\begin{frame}[fragile]{C++ example Code}
% code example
\begin{lstlisting}
# include <iostream>
int main() {
std::cout << "Hewwo Worwld!" \
<< std::endl;
return 0;
}
\end{lstlisting}
\end{frame}
% %
% credits frame % credits frame
% %

Loading…
Cancel
Save