% Listings Code Formating
\lstdefinestyle{PropertyStyle}{
  language=HTML,
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=single,
  breaklines=true,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[l][\color{orange!40!black}\ttfamily]{\#}
}

\lstdefinestyle{XMLStyle}{
  language=XML,
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=single,
  breaklines=true,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[s][\color{green!40!black}\ttfamily]{<!--}{-->}
}

\lstdefinestyle{MatlabStyle}{
  language=Matlab,
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=single,
  breaklines=true,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[s][\color{green!40!black}\ttfamily]{\%\{}{\%\}}
}

\lstdefinestyle{CStyle}{
  language=C,
  morekeywords={using,namespace},
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=single,
  breaklines=true,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[l][\color{orange!40!black}\ttfamily]{\#},
  morecomment=[s][\color{green!40!black}\ttfamily]{/*}{*/}
}

\lstdefinestyle{VBStyle}{
  language=VBScript,
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=single,
  breaklines=true,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[l][\color{orange!40!black}\ttfamily]{\#}
}

\lstdefinestyle{LaTeXStyle}{
  language=[LaTeX]{TeX},
  numbers=none,
  stepnumber=1,
  numbersep=12pt,
  tabsize=4,
  showspaces=false,
  showstringspaces=false,
  frame=none,
  breaklines=true,
  moretexcs={Cref,cref,namecref,nameCref,autoref,cpageref,Cpageref,newcolumntype,arraybackslash,description,cmidrule,toprule,bottomrule,midrule,listofplates,tag,maketitle,vspace,hspace,chapter,subsection,geometry,degree,specialization,department,faculty,convocationdate,abstracttext,preface,thesisquote,dedication,acknowledgementtext,subsubsection,paragraph,subparagraph,hfill,includegraphics,subfigure,includepdf,lstset,color,addplot},
  basicstyle=\normalsize\ttfamily,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{magenta!80!red}\ttfamily,
  commentstyle=\color{green!40!black}\ttfamily,
  morecomment=[l][\color{orange!40!black}\ttfamily]{\#}
}