I need a way to correctly align the escaped strings that I put inside of this listing. The problem is that they are presented right aligned. I want that this lines keep the indentation of the previous code. For example:
line of code
line of code
line of code
\vdots correctly aligned escaped string
what I have is something like
line of code
line of code
line of code
\vdots right aligned escaped string
the real code is this:
\lstset{language=[Sharp]C,,basicstyle=\footnotesize, showspaces=false,showtabs=false,,breaklines=true,showstringspaces=false,breakatwhitespace=true,frame=trBL, escapeinside={(*@}{@*)}}
\begin{lstlisting}
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
string oldName;
int index = 0;
public Form1()
{
InitializeComponent();
listView1.LabelEdit = true;
listView1.MultiSelect = false;
}
private void button1_Click(object sender, EventArgs e)
{
listView1.Items.Add("xd"+index);
index++;
listView1.Items[listView1.Items.Count - 1].Selected = true;
(*@ $\vdots$ @*)
(*@ $\vdots$ Comparaciones similares a la anterior. Compactadas por brevedad. @*)
(*@ $\vdots$ @*)
}
