diff --git a/Programmiersprachen/vhdl.tex b/Programmiersprachen/vhdl.tex index ee614df..4c1da9f 100644 --- a/Programmiersprachen/vhdl.tex +++ b/Programmiersprachen/vhdl.tex @@ -3,7 +3,7 @@ \lstdefinestyle{customc}{ belowcaptionskip=1\baselineskip, breaklines=true, %Schaltet Zeilenumbruch ein - %frame=L, %Erzeugt Strich links oder Rahmen mit single + frame=L, %Erzeugt Strich links oder Rahmen mit single xleftmargin=0pt, language=VHDL, showstringspaces=false, @@ -14,6 +14,20 @@ stringstyle=\color{orange}, } +\lstdefinestyle{customd}{ + belowcaptionskip=1\baselineskip, + breaklines=true, %Schaltet Zeilenumbruch ein + frame=L, %Erzeugt Strich links oder Rahmen mit single + xleftmargin=0pt, + language=tcl, + showstringspaces=false, + basicstyle=\footnotesize\ttfamily, + keywordstyle=\bfseries\color{blue!90!black}, + commentstyle=\itshape\color{green!60!black}, + identifierstyle=\color{black}, + stringstyle=\color{orange}, +} + %Im Hauptfile unter begin{document} folgendes einfügen % \input{vhdl.tex} @@ -24,5 +38,7 @@ % \end{lstlisting} -%Um Code aus einer Datei zu importieren +%Um Code aus einer VHDL-Datei zu importieren % \lstinputlisting[style=customc]{file.vhd} +% und für tcl Makros: +% \lstinputlisting[style=customd]{file.DO} \ No newline at end of file