You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB
TeX

\lstset{language=VHDL}
\lstdefinestyle{customc}{
belowcaptionskip=1\baselineskip,
breaklines=true, %Schaltet Zeilenumbruch ein
frame=L, %Erzeugt Strich links oder Rahmen mit single
xleftmargin=0pt,
language=VHDL,
showstringspaces=false,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\bfseries\color{blue!90!black},
commentstyle=\itshape\color{green!60!black},
identifierstyle=\color{black},
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}
%Um nun Inline Code zu schreiben
% \begin{lstlisting}[style=customc]
% Code here
% \end{lstlisting}
%Um Code aus einer VHDL-Datei zu importieren
% \lstinputlisting[style=customc]{file.vhd}
% und für tcl Makros:
% \lstinputlisting[style=customd]{file.DO}