Linked Questions

447
votes
1answer
68k 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
1answer
29k 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 ...
14
votes
1answer
2k 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 ...
6
votes
1answer
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. ...
7
votes
1answer
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?
14
votes
2answers
191 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 ...
12
votes
3answers
374 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 ...
1
vote
1answer
143 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?
0
votes
2answers
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 ...
1
vote
0answers
211 views

Allow different syntax highlighting for different languages [duplicate]

Possible Duplicate: Syntax highlighting hints The syntax highlighting system on SO has some serious problems. It works okay for most C family languages (C, C++, C#, D, etc.), but it interacts ...
1
vote
0answers
169 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 ...
1
vote
0answers
164 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 ...
0
votes
1answer
102 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 ...
0
votes
0answers
36 views

What “language: lang-hazaa” mark-up settings to specify for web.config? [duplicate]

Possible Duplicate: Syntax highlighting language hints When colorification doesn't work, I use to specify the language explicitly using the language: lang-hazaa syntax. However, in this reply, it'...
0
votes
0answers
31 views

HTML 5 syntax not hightlighted inside code [duplicate]

Possible Duplicate: Syntax highlighting language hints I just noted that my post which uses valid HTML5 syntax is not being highlighted at all: <input type=text list=browsers > <...

15 30 50 per page