2

In my code, I have curved quotes (see screenshot). Can I replace them with vertical quotes?

enter image description here

This is my formatting code:

\lstset{%
% General design
backgroundcolor=\color{lightgray},
basicstyle={\small\ttfamily},   
frame=l,
% Code design
identifierstyle=\color{black},
keywordstyle=\color{blue}\bfseries,
ndkeywordstyle=\color{greenCode}\bfseries,
stringstyle=\color{ocherCode}\ttfamily,
commentstyle=\color{darkgray}\ttfamily,
% Code
language={JavaScript},
tabsize=2,
showtabs=false,
showspaces=false,
showstringspaces=false,
extendedchars=true,
breaklines=true,
captionpos=b,
% line-numbers
xleftmargin={0.75cm},
numbers=left,
stepnumber=1,
firstnumber=1,
numberfirstline=true,
}
lockstep
  • 250,273
Benny Code
  • 3,042

1 Answers1

7

The use of upquote solves the problem:

\usepackage{upquote}
\usepackage{listings}

Thanks to G. Poore!

Benny Code
  • 3,042