%%%%%%%%%%%%%%%
% utils / commands

\usepackage{pgf}					
\usepackage{tikz}					% tikz graphics
\usetikzlibrary{arrows,automata}

 % disable
\usepackage[textsize=footnotesize, textwidth=1in, colorinlistoftodos=1, 		bordercolor=todoborder, linecolor=todoborder, backgroundcolor=todobg]{todonotes}

\newcommand{\todoin}[1]{\todo[inline]{#1}}
\newcommand{\todocite}[1]{\todo[inline,backgroundcolor=cite]{#1}}
\newcommand{\todoask}[1]{\todo[inline,backgroundcolor=ask]{#1}}
\newcommand{\todocode}[1]{\todo[inline,backgroundcolor=code]{#1}} % anything that runs: installing, implementing, data transform 
\newcommand{\concept}[1]{\textsf{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\xne}[1]{\textsf{#1}}
\newcommand{\furl}[1]{\footnote{\url{#1}}}
\newcommand{\ftodo}[1]{\footnote{\todoin{#1}}}

\newenvironment{note}
{\footnotesize \color{grey} \begin{it}}
{ \end{it} \normalsize}


% xml syntax highlighting
% source http://snipt.org/vngf3
\usepackage{listings}
 
\definecolor{grey}{rgb}{0.4,0.4,0.4}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}

\definecolor{todobg}{rgb}{0.8,0.8,1}
\definecolor{cite}{rgb}{0.8,1,0.8}
\definecolor{ask}{rgb}{1,1,0.8}
\definecolor{code}{rgb}{1,0.8,0.8}
\definecolor{todoborder}{rgb}{0.8,0.4,0.4}

 
\lstset{
  basicstyle=\ttfamily\footnotesize,
  columns=fullflexible,
  showstringspaces=false,
  commentstyle=\color{grey}\upshape
}
 
\lstdefinelanguage{XML}
{
  basicstyle=\ttfamily\color{darkblue}\bfseries\footnotesize,
  morestring=[b]",
  morestring=[s]{>}{<},
  morecomment=[s]{<?}{?>},
  stringstyle=\color{black},
  identifierstyle=\color{darkblue},
  keywordstyle=\color{cyan},
  morekeywords={xmlns,version,type}% list your attributes here
}
