I am having problem with lstinline macro. It keeps adding a space after the keyword "Module" - see MWE. How could I convince Latex not to do so?
I already tried with including the "." inside the \koda argument, but then I get 2 spaces onward.
\documentclass{book}
\usepackage{listings}
\newcommand{\koda}[1]{%
\lstinline[language=[Visual]Basic,keywordstyle=\ttfamily\color{blue}, %
basicstyle=\rmfamily\normalsize, prebreak=, %
morekeywords={Or, Loop, Until, To, As, Single, Module, Double, ByVal}]
{#1}} %
\begin{document}
An example with \koda{Console, Sub et Module}. Continued text ...
\end{document}
Thanks in advance!

\usepackage{xcolor}. Also, you should put curly braces around the language selection, as in\lstinline[language={[Visual]Basic},...], because otherwise there are issues with the parsing of the square brackets. With these fixes, I do not see the space between 'Module' and the '.' that you are talking about. – cyberSingularity Dec 12 '12 at 17:52