%\usepackage{sourcecodepro}
\usepackage{listings}

\definecolor{lstgreen}{rgb}{0,0.6,0}
%\definecolor{lstgray}{0,0.6,0}
%\definecolor{lstmauve}{rgb}{}

% set some defaults:
\lstset{%
language=C,
%basicstyle=\scriptsize\sourcecodepro,
%basicstyle=\scriptsize\ttfamily,
basicstyle=\linespread{1.1}\scriptsize\ttfamily,
commentstyle=\color{lstgreen},
% core lang
keywordstyle=\color{blue},
% modifier
keywordstyle=[2]\color{SlateBlue},
% types
keywordstyle=[3]\color{DarkCyan},
% vars
keywordstyle=[4]\color{violet},
%ndkeywordstyle=\color{violet},
emphstyle=\bfseries\color{DarkGray},
identifierstyle=\color{black},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{gray}\ttfamily,
%numbers=left,
numbers=left,
numberstyle=\tiny,
columns=fullflexible,
keepspaces=true,
showstringspaces=false,
captionpos=b,
%xleftmargin=\parindent,
%framexleftmargin=\parindent,
%xleftmargin=2cm,
%linewidth=\textwidth,
%xleftmargin=2cm,
xleftmargin=2em,
%xleftmargin=3pt,
xrightmargin=3pt,
%aboveskip=\bigskipamount,
%belowskip=\bigskipamount,
%fancyvrb=true,
frame=single,
%frame=L,
escapechar=@,
}

\lstdefinestyle{plain}{%
  numbers=none,
  frame=none,
  xleftmargin=1pt,
  xrightmargin=1pt,
}
