%% This defines a new language style for the listings package. 
%% Stick 
%% \usepackage{cowl}
%% Into your preamble and all should work. If you really want to, try 
%% \cowlbw to turn off my funky colours

\RequirePackage{color}
\RequirePackage{listings}

\lstdefinelanguage{cowl}%
{comment=[s]{/*}{*/},
  keywords={Ontology,Namespace,Class,ObjectProperty,domain,inverseOf,%
    owl:Thing,partial,complete,restriction,someValuesFrom,intersectionOf,allValuesFrom,%
  Individual,type,value,SubClassOf},
  string=[d]"}
[keywords,comments,strings]

\lstset{keywordstyle=\color{green}\itshape,commentstyle=\color{red}\bfseries}
\newcommand{\cowlbw}{\lstset{keywordstyle=\itshape,commentstyle=\bfseries}}


\lstnewenvironment{cowl}{\lstset{language=cowl}\tiny}{}