Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

which font is used on stackoverflow for code snippets?


var $div = $("#preloader");
$.each($.imgNames, function (i, val) {
    $("<img />").attr("src", $.largePath + val).addClass('PRELOADED').appendTo($div);
share|improve this question
duplicate -> – Nishad Sep 13 '13 at 9:20
up vote 10 down vote accepted

It depends what fonts are available on your system, but the list (in order of priority) is:

Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif

You can see this by inspecting one of the pre or code elements that contain formatted code (screenshot from Chrome's DOM inspector):

enter image description here

For more information on how that CSS behaves, you could look at the CSS Fonts module specification.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .