Linked Questions

453
votes
1answer
70k 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 ...
1
vote
1answer
147 views

Problem with Code Formatting [duplicate]

Possible Duplicate: Manually specify language for syntax highlighting For some reason when I edit this question, and I select the relevant code portions, and hit the code formatting button, my ...
345
votes
12answers
49k 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 ...
58
votes
23answers
29k 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 ...
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 ...
13
votes
2answers
14k views

Stack Overflow syntax highlighting [duplicate]

When using SO's code blocks, can you control how syntax highlighting is performed? Many times, I've pasted (for example) some shell output into an SO answer, and the syntax highlighting has been ...
5
votes
4answers
240 views

<pre> versus four-space indentation?

I frequently make answers with code samples that are surrounded with pre tags instead of having each line indented with an extra four spaces, because doing the latter either means I have to add four ...
4
votes
1answer
7k views

How to insert code in stack overflow [duplicate]

Possible Duplicate: How do I format my code blocks? I did the following: I wrote my question, paste my code, then click {} from the format toolbar. My code turns to grey-colored, but is not ...
7
votes
2answers
522 views

Please add a “prettyprint” class when explicitly defined class with <!— language: something -->

Please add a "prettyprint" CSS class when explicitly defining class with <!-- language: something --> regardless of there being no valid language tag. It is inspired by question Syntax ...
2
votes
2answers
156 views

Mark two languages in one code block

I have this question. I reformatted it, to get better view and syntax-highlighting. Referring to this and this, there is special markdown to force special highlighting. But that has one requirement: &...
5
votes
1answer
366 views

Why do I get nice Erlang syntax coloring in preview but not in the rendered page after I post?

While I edit Erlang code there is nice syntax coloring shown in the preview. Once I post, the rendered code is often only black on grey. Example: Erlang pattern matching bitstrings Counterexample: ...
5
votes
1answer
680 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 ...
30
votes
1answer
238 views

Please provide a language pick-list for syntax highlighting

I saw on another question that mods have access to a nice pick-list for languages in certain scenarios (this one was about setting the default language for tags): I'd love to be able to use such a ...
21
votes
1answer
205 views

Please update the editing help

I only recently learned about a new feature to insert those fancy tags into your post. I didn't know what the exact syntax was. It was only now that I needed it myself, and I've been searching like a ...
4
votes
1answer
238 views

Can WPF tag highlight C# code?

Very often when questions are tagged as WPF, I find myself putting little snippets of C# into the answer (even if the question itself is specified in purely xaml, occasionally some C# makes a better ...

15 30 50 per page