SHOW:
|
|
- or go back to the newest paste.
| 1 | - | %-------------------------------------------------------------------------% Kildekodevisning |
| 1 | + | \usepackage{listings}
|
| 2 | - | \lstset{ |
| 2 | + | %-------------------------------------------------------------------------% Kildekodevisning |
| 3 | - | language=bash, |
| 3 | + | \lstset{
|
| 4 | - | keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1}, |
| 4 | + | language=bash, |
| 5 | - | identifierstyle=\ttfamily, |
| 5 | + | keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1},
|
| 6 | - | commentstyle=\color[rgb]{0.133,0.545,0.133}, |
| 6 | + | identifierstyle=\ttfamily, |
| 7 | - | stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941}, |
| 7 | + | commentstyle=\color[rgb]{0.133,0.545,0.133},
|
| 8 | - | showstringspaces=false, |
| 8 | + | stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941},
|
| 9 | - | basicstyle=\small, |
| 9 | + | showstringspaces=false, |
| 10 | - | numberstyle=\footnotesize, |
| 10 | + | basicstyle=\small, |
| 11 | - | numbers=left, |
| 11 | + | numberstyle=\footnotesize, |
| 12 | - | stepnumber=1, |
| 12 | + | numbers=left, |
| 13 | - | numbersep=10pt, |
| 13 | + | stepnumber=1, |
| 14 | - | tabsize=2, |
| 14 | + | numbersep=10pt, |
| 15 | - | breaklines=true, |
| 15 | + | tabsize=2, |
| 16 | - | prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}}, |
| 16 | + | breaklines=true, |
| 17 | - | breakatwhitespace=false, |
| 17 | + | prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
|
| 18 | - | aboveskip={1.5\baselineskip}, |
| 18 | + | breakatwhitespace=false, |
| 19 | - | columns=fixed, |
| 19 | + | aboveskip={1.5\baselineskip},
|
| 20 | - | upquote=true, |
| 20 | + | columns=fixed, |
| 21 | - | extendedchars=true, |
| 21 | + | upquote=true, |
| 22 | - | % frame=single, |
| 22 | + | extendedchars=true, |
| 23 | - | % backgroundcolor=\color{lbcolor}, |
| 23 | + | % frame=single, |
| 24 | - | } |
| 24 | + | % backgroundcolor=\color{lbcolor},
|
| 25 | } | |
| 26 | ||
| 27 | % For å bruke denne må du bruke lstlisting: | |
| 28 | % \begin{lstlisting}
| |
| 29 | % // kode her | |
| 30 | % \end{lstlisting} |