Skip to content

Instantly share code, notes, and snippets.

@koos
Created June 10, 2010 13:01
Show Gist options
  • Save koos/432956 to your computer and use it in GitHub Desktop.
Save koos/432956 to your computer and use it in GitHub Desktop.
\usepackage{listings}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{color}
\definecolor{mygrey}{rgb}{0.2,0.2,0.2}
\definecolor{hellgelb}{rgb}{1,1,0.9}
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{1,0,0}
\definecolor{colString}{rgb}{0,0.5,0}
\lstset{
float=hbp,
basicstyle=\ttfamily\color{black}\small\smaller,
identifierstyle=\color{colIdentifier},
keywordstyle=\color{colKeys},
stringstyle=\color{colString},
commentstyle=\color{colComments},
columns=flexible,
tabsize=2,
frame=single,
extendedchars=true,
showspaces=false,
showstringspaces=false,
numbers=left,
numberstyle=\tiny,
breaklines=true,
% backgroundcolor=\color{hellgelb},
breakautoindent=true
}
\lstloadlanguages{ruby}
\lstdefinestyle{cucumber}{
language={ruby},
keywordstyle={\color{red}},
morekeywords={puts, um, als, moechte, szenario, gegeben, und, wenn, dann, feature, given, when, then, as, i, so, I, So, As, Then, When, Given, Feature, Dann, Wenn, Und, Gegeben, sei, Sei, Szenario, Moechte, Als, Um, M\"ochte, m\"ochte, and, And},
commentstyle={\color{blue}},
numbers={left},
numberstyle={\tiny}
}
% Rahmen
% frame=ltrb,
% framesep=5pt,
% numbers=left,
% stepnumber=1,
% numbersep=5pt,
% numberstyle=\tiny,
% breaklines=true,
% breakautoindent=true,
% postbreak=\space,
% tabsize=2,
% basicstyle=\ttfamily\footnotesize,
% keywordstyle=\textbf,
% identifierstyle=\textit,
% stringstyle=\ttfamily,
% showspaces=false,
% showstringspaces=false,
% extendedchars=true,
% backgroundcolor=\color{lbcolor_ruby}
\lstset{literate=%
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}2
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment