Does anyone have a nice typesetting style for the C# language using listings? I configure it in this way:
\lstset{language=[Sharp]C,,basicstyle=\footnotesize,
showspaces=false,showtabs=false,,breaklines=true,
showstringspaces=false,breakatwhitespace=true,
escapeinside={(*@}{@*)}}
But still it doesn't look fine, T_T. In my configuration I have characters that are too rounded and the code looks like if it was written using a typewriter. I don't want that. I want a modern, clear font, that looks more similar to the what I see in Visual Studio.
Final Election.
Thanks to all you guys, for give me ways to improve the appearance of the code. My final election is from the answer of @PauloCereda, little tuned with one of the comments and a bfseries touch for keywords. Here is the code and how it looks:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[scaled]{beramono}
\usepackage{color}
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.9,0,0}
\usepackage{listings}
\lstset{language=[Sharp]C,
showspaces=false,
showtabs=false,
breaklines=true,
showstringspaces=false,
breakatwhitespace=true,
escapeinside={(*@}{@*)},
commentstyle=\color{greencomments},
keywordstyle=\color{bluekeywords}\bfseries,
stringstyle=\color{redstrings},
basicstyle=\ttfamily
}
\begin{document}
\begin{lstlisting}
/**
* Prints Hello World.
**/
class Program
{
public static void Main()
{
System.Console.WriteLine("Hello World!");
}
}
\end{lstlisting}
\end{document}





Consolas. There's an alternative font called Inconsolata, which is pretty good. – Paulo Cereda May 16 '11 at 20:32