I am documenting a script which has almost 43+ keywords. The output I want is something on the below lines...
and the latex code I have is
\documentclass[a4paper, onesided]{article}
\usepackage{listings}
\lstdefinestyle{customc}
{%
basicstyle=\small\ttfamily,
keywordstyle=\color{blue},
commentstyle=\color{green!40!black},
stringstyle=\color{red!40!black},
columns=fullflexible
}%
\lstdefinelanguage{InnoScript}{%
keywords={AllowCancelDuringInstall, WindowVisible, RestartIfNeededByRun, Name, MessagesFile, Source, DestDir, Flags, Languages, Parameters, Filename, WorkingDir},
sensitive=true,
comment=[l]{;},
string=[b]'
}%
\begin{document}
\lstset{style=customc}
\lstinputlisting[language=InnoScript, firstline=39, lastline=51]{<WindowsLocation>Script.iss}
\end{document}
The errors I receive is:
Where am I wrong?
EDIT
@Daniel, came to rescue. Now, the question arises. How do I fix the overfull box warning? :-D
\usepackage{xcolor}
), which define the\color
command.breaklines=true
added to the 'lstdefinestyle`?