Linked Questions

629 votes
1 answer
133k views

What is syntax highlighting and how does it work?

I noticed that sometimes my code gets highlighted in different colors when rendered. What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a ...
156 votes
1 answer
32k views

Interface options for specifying language prettify [duplicate]

I'm the maintainer for Google Code Prettify. Markup authors can specify the language for source code, but not markdown authors. Are the SO admins interested in a way of doing this? If so, might the ...
Mike Samuel's user avatar
  • 2,026
18 votes
1 answer
4k views

Markdown, how can I set the language highlighting display in Stack Overflow to ruby? [duplicate]

Possible Duplicate: Syntax highlighting language hints Interface options for specifying language prettify How do I set the language being highlighted in Stack Overflow to be colored and ...
Michael Durrant'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
6 votes
1 answer
2k views

Why doesn't SO syntax-highlight my PHP code? [duplicate]

Possible Duplicate: Syntax highlighting language hints Changes to syntax highlighting I just asked a question on SO Facebook API scope and it's refusing to do a syntax highlight on my PHP code. ...
Mikhail's user avatar
  • 223
7 votes
1 answer
2k views

Does Stack Exchange have syntax highlighting for Java stack traces? [duplicate]

Is there a syntax highlighting for Java stack traces. Any tips about people editing posts looking at that?
Crowie's user avatar
  • 337
12 votes
3 answers
390 views

Allow `class` attribute for `<code>` tag [duplicate]

Possible Duplicate: Syntax highlighting hints As we all know, prettify.js, which is used by Stackoverflow for syntax highlighting, allows the specification of the intended language. However, we ...
Svante's user avatar
  • 751
1 vote
1 answer
196 views

Python syntax highlighting breaks on quotation mark [duplicate]

A quote mark (') in a comment breaks further highlighting. Example: Is there a tool to check database integrity in Django?
Eugene's user avatar
  • 123
0 votes
2 answers
52 views

How to fix this coloring problem? [duplicate]

I have a question that have 5 tags, and c is not one of them. Without c tag, the code block is colorless and harder to read. Other 5 tags are way more important than c tag, therefore I cannot replace ...
Varaquilex's user avatar
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
1 vote
0 answers
175 views

Allow declaration of programming language for syntax highlighting [duplicate]

Possible Duplicate: Syntax highlighting hints The parser for code blocks has some kind of heuristic (the "Prettify" library, IIUC) for guessing what programming language syntax to use for ...
bignose's user avatar
  • 409
0 votes
1 answer
105 views

Is there a way to suggest the language used for the code snippet to highlight? [duplicate]

Possible Duplicate: Syntax highlighting language hints Sometimes it happens that the snippet could be interpreted to be in a programming language, when really it's another one. If the snippet is ...
avpaderno's user avatar
  • 67.1k
1 vote
0 answers
25 views

syntax highlighting for code blocks in answers to general questions [duplicate]

A while ago I flagged this answer for moderator attention, because the code example has no syntax highlighting. My flag got declined because - quote from the moderator: Unfortunately, not in a way ...
Philipp M's user avatar
  • 365
57 votes
23 answers
38k views

Changes to syntax highlighting

locked for the history - please post bugs and feature-requests separately. -Shog9 We're changing the way syntax highlighting is done on the Stack Exchange engine. As you probably know, we use ...
Jeff Atwood's user avatar

15 30 50 per page
1
2 3 4 5 6