I'm using the listings package to insert some code in some my documents. An example of the tex code in below:
Code: Select all
Code, edit and compile here:
\documentclass [10pt ,a4paper, oneside]{article}\usepackage{listings} %per la stampa del codice\newenvironment{C}{\lstset{language=[ANSI]C++,basicstyle=\small\ttfamily,%numbers=left,showspaces=false,numberstyle=\tiny,stepnumber=2,tabsize=2,numbersep=5pt,numberfirstline = false,framexleftmargin=5mm, frame=shadowbox,breaklines = true}}{}\begin{document}\begin{C}\begin{lstlisting}void initIrqVectors(void) {// IVPR = address base used with IVOR'sasm ("lis r5, IV_ADDR@h");for (int i = 0; i < 5 ; i++) { ... }}\end{lstlisting}\end{C}\end{document}
It has to be noticed that the space symbol appears only for the code inside the double quotation mark.
Do you know how to remove the space symbol and to show just a blank space?