Up until now I used the listings package for my code-listings. Today, I tried minted and I'm pleased with the default look. Since I'd have a lot to do to switch from listings to minted at this stage of my thesis, I'd like to mimic the look.
In the following picture, you see the same source-code in listingz and minted.
Could you help me identify the appropriate listings settings to make the left example look like the right one? I can figure out the colours myself, but the rest (spacing, font, etc.) puzzles me.
There are my styling-settings for listing:
% javascript code listing
\newcommand{\inputjscode}[2][]{{%
\renewcommand{\lstlistingname}{JavaScript Code}%
\renewcommand{\addcontentsline}[3]{\oldaddcontentsline{los}{##2}{##3\enskip(\lstlistingname)}}%
\lstset{
tabsize=2,
lineskip=-1pt,
rulecolor=,
basicstyle=\footnotesize,
columns=fullflexible,
upquote=true,
aboveskip={1.3\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
breaklines=false,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
escapechar=@,
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{1.0,0,0},
keywordstyle=[1]\color[rgb]{0,0,0.75},
keywordstyle=[2]\color[rgb]{0.5,0.0,0.0},
keywordstyle=[3]\color[rgb]{0.127,0.427,0.514},
keywordstyle=[4]\color[rgb]{0.4,0.4,0.4},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.639,0.082,0.082},
}
\lstinputlisting[
numbers=left,
frame=single,
stepnumber=1,
inputencoding=latin1,
language=JavaScript,
basicstyle=\scriptsize,
#1]{#2}%
}}


basicstyle=\ttfamily\footnotesizeto switch to monowidth font inlstlisting.commentstyle=\itshapeitalicizes the comments. – Arash Esbati Aug 18 '15 at 16:24numberstyle=\tiny– Hedge Aug 18 '15 at 18:39columnskey in your code. You have it twice and I think at the end of the day, you wantcolumns=flexible. – Arash Esbati Aug 18 '15 at 19:36