Skip to main content

All Questions

Filter by
Sorted by
Tagged with
7 votes
1 answer
141 views

Is the language name case sensitive for syntax highlighting?

I often use the syntax-highlighting feature of Stack Exchange in order to make my code easier to read. ```lang-python for k in range(0, 10): print(k) ``` for k in range(0, 10): print(k) ...
Toothpick Anemone's user avatar
0 votes
0 answers
28 views

How to disable syntax highlighting in Markdown fenced code blocks [duplicate]

For indented code blocks, adding <!-- language: lang-none --> disables syntax highlighting. What about for fenced code blocks? Can I use lang-none or none in fenced code blocks too? Which of the ...
Flux's user avatar
  • 769
3 votes
1 answer
68 views

Language hint in list breaks list in StackExchange sites but not in Meta [duplicate]

I'm trying to add a language hint to a snippet in a list item like so: - A list with code: <!-- language: lang-none --> some code with follow-up... - Another item In the Meta ...
concat's user avatar
  • 133
29 votes
1 answer
26k views

Where is the list of language names supported by the markdown fenced code blocks? [duplicate]

Related to Implement ```-style (fenced) Markdown code blocks On this answer I used ```makefile and it is "working" the highlighting: However, on this other answer, I am also using ```makefile and it ...
user's user avatar
  • 606
33 votes
1 answer
7k views

Which Stack Exchange sites have syntax highlighting enabled?

The code syntax highlighting feature is only enabled on certain sites. In order for code to be highlighted and for any of the hints listed in the above question to work, the Markdown extension has to ...
Sonic the Anonymous Hedgehog's user avatar
5 votes
2 answers
293 views

How to turn off syntax highlighting in indented portion of block quote

I've edited this answer, adding text that I copied from a FAQ and then block quoted: > 3.1) How do I find the creation time of a file? > > You can't - it isn't stored anywhere. ...
Wayne Conrad's user avatar
2 votes
3 answers
2k views

How can I prevent syntax higlighting in markdown? [duplicate]

When I wished to show example data, I used the code block syntax (4 spaces indentation after an empty line), but the data was rendered like a programming language. Can I prevent the syntax ...
Wolf's user avatar
  • 746
5 votes
1 answer
301 views

<!-- language: css --> markdown doesn't work properly

Based on https://stackoverflow.com/editing-help#syntax-highlighting I shouldn't need to give the lang- prefix when specifying a language for a tag, however this doesn't appear to be the case for CSS. ...
James Donnelly's user avatar
4 votes
1 answer
1k views

List of languages for syntax highlight [duplicate]

When putting some code sections into SO questions, the system tries to detect the language and automagically colorizes the code but sometimes if the excerpt of code is small enough it cannot get the ...
Seki's user avatar
  • 496
16 votes
1 answer
3k views

Unable to force Python syntax-highlighting

I have asked a question related to web2py—an open-source Python web-framework—that includes a code snippet. Unfortunately it didn't syntax highlight by default, so—following the docs—I added the ...
A T's user avatar
  • 293
3 votes
2 answers
198 views

Markdown highlights JavaScript comments incorrectly

The comments above and below jquery(document)... are rendered incorrectly. Here's a screenshot of the original page:
f.ardelian's user avatar
1 vote
2 answers
117 views

Why does code highlighting work in the edit preview, but not in the actual post?

For some reason, my code highlighting works when I'm editing the question, but not in my actual post. (I've tried giving it a hint; no difference.) Is this a bug?
user541686's user avatar
  • 14.7k
1 vote
0 answers
247 views

Is it possible to explicitly tell Stack Overflow the language of the code block you are including? [duplicate]

Possible Duplicates: stackoverflow syntax highlighting Syntax highlighting hints Stack Overflow awesomely detects what language a code block is and syntax highlights it accordingly. But ...
John Bachir's user avatar
2 votes
1 answer
191 views

Code is indented by 4 spaces but isn't interpreted as code [duplicate]

Possible Duplicate: Why is a code block not properly formatted when placed immediately after a list item? If you look at my post ( 3rd down ) on this stack overflow page, you'll see that my code ...
Ross Rogers's user avatar
2 votes
2 answers
82 views

Code Block not showing up within a list [duplicate]

Possible Duplicates: How do I include a code block right after a list without it turning into a blockquote? How to nest code within a list using markdown I edited this question, but even after ...
George Stocker's user avatar
2 votes
2 answers
451 views

How do I format this source code?

I can't get it to look right! See my question. Compare 1: code sample http://img402.imageshack.us/img402/1410/compare1.gif render sample http://img407.imageshack.us/img407/8014/compare1a.gif ...
Zack Peterson's user avatar
17 votes
2 answers
901 views

Is it possible to have a code block that isn't highlighted? [duplicate]

There are some languages that get highlighted incorrectly. Is it possible to specify a code block that does not have any highlighting when it gets displayed? Here is an small example of CSS that is ...
user avatar