Linked Questions

340
votes
12answers
47k views

Syntax highlighting language hints [duplicate]

Do you think it would be worthwhile to provide hints as to what language to use for the syntax highlighting? Sometimes I find the highlighting on SQL or VB.NET answers is more distracting than ...
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 ...
3
votes
1answer
441 views

VB.NET tag needs to have ‘lang-vb.net’ syntax highlighter set as default [duplicate]

When I manually specify the language of a code block as VB.NET like this: <!-- language: vbnet --> theNodeList.Cast(Of XmlNode)() theNodeList.Cast(Of XmlNode)() the code is not ...
4
votes
1answer
107 views

Syntax highlighting is incorrect for a question tagged both C# and VB.NET [duplicate]

Possible Duplicate: Interface options for specifying language prettify It seems that questions tagged both C# and VB.NET have C# syntax highlighting applied (possibly because it is first ...
551
votes
31answers
59k views

Formatting Sandbox

Note: Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye. As per Jeff's suggestion in this comment: You can use ...
442
votes
1answer
67k 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 ...
155
votes
11answers
40k views

Add markdown support for hidden-until-you-click text (aka spoilers)

Use cases: Programming puzzles. This way the answer can be posted the same time as the question, eliminating doubt that no answer is possible for hard questions and proving that the question is not a ...
58
votes
23answers
28k 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 ...
115
votes
3answers
15k views

Manually specify language for syntax highlighting [duplicate]

This is a follow-up to a question I answered earlier (Changes to syntax highlighting). For most questions that have more than one language-related tag and those with fuzzy languages (for instance ....
46
votes
2answers
412 views

Add a button for adding code highlighting for a specific language [duplicate]

Currently, the following code: <!-- language: lang-php --> <?php="test"?> <!-- language: lang-xml --> <bug cat="md" name="syntax"> Generates the following markdown:...
13
votes
3answers
10k views

How to insert sample XML code in Stack Overflow? [duplicate]

I am trying to ask a question which contains sample XML code but I can't paste sample XML code in the question. How it can be done?
5
votes
3answers
2k views

How does Stack Overflow syntax highlight citations so well?

I posted a citation in an answer to a question, reproduced here: H. Muhammad and R. Ierusalimschy. C APIs in extension and extensible languages. Journal of Universal Computer Science, 13(6):839–853, ...
45
votes
2answers
713 views

pure code formatting, to enhance a question, is impossible (without 2k rep)

Without 2k rep, code formatting is impossible, because it just adds spaces, which don't count for the 6-character-ritual-threshold. This question is related to impossible title-improvements for a ...
28
votes
2answers
1k views

Can we add how to disable syntax highlighting to the editing help (FAQ)?

Syntax highlighting for code has a long section about syntax highlighting but it fails to mention how to disable it. I guess one can use "lang-none" as a language code (it's listed in Interface ...
20
votes
1answer
1k views

Syntax highlighting: what about answering with a different language than the one used in the question?

Sometimes, it can be useful to quote a different language to the one used in the question. For example, one might be interested in the C source code of a language interpreter in order to understand ...

15 30 50 per page