TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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,
}
share|improve this question

marked as duplicate by Marco Daniel, Claudio Fiandrino, Kurt, Stefan Kottwitz Feb 9 '13 at 15:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Have you tried \usepackage{upquote}? – G. Poore Feb 6 '13 at 4:18
1  
It would be useful to put a full minimal working example up to play with, it looks like you've included more that listings to get this working. – Nathanael Farley Feb 6 '13 at 9:48

The use of upquote solves the problem:

\usepackage{upquote}
\usepackage{listings}

Thanks to G. Poore!

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.