Linked Questions

322
votes
12answers
45k 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 ...
109
votes
3answers
14k 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 ....
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 ...
21
votes
3answers
848 views

VB.NET/VBScript syntax highlighting does not properly support comments [duplicate]

(Descriptions are inside the code samples) Take a look at this code Public Sub Show() System.Console.WriteLine("Hello") ' Comment here will fail subsequencing syntax highlighting System....
23
votes
1answer
8k views

How to specify a language in code block? [duplicate]

Possible Duplicate: Interface options for specifying language prettify I don't know how Markdown recognize which language used in the code blocks. But sometimes it doesn't guess right.
8
votes
2answers
435 views

Why is there no syntax highlight for SQL merge statements? [duplicate]

It seems, that Stack Overflow doesn't recognise the SQL:2003/SQL:2008 MERGE statement, as can be seen in my answer here: Oracle: Updating a table column using ROWNUM in conjunction with ORDER BY ...
0
votes
3answers
299 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 ...
11
votes
1answer
859 views

How to handle regex syntax highlighting? [duplicate]

Many questions about regex include code blocks with language agnostic, POSIX compatible patterns, using default prettifying. (example) This looks kind of ugly and is confusing, since some parts are ...
5
votes
2answers
187 views

Syntax Highlighting Doesn't Recognize Line Continuations Within VB6 Comments [duplicate]

I've run into some unexpected syntax highlighting mistakes while I was asking a question about VB6. When I use _ after using ' to add comments about my code I see that _ does not work within ', but ...
3
votes
2answers
225 views

Syntax highlighting is inconsistent [duplicate]

In this question, why is ElementByElement highlighted as a method, but ElementByElement2 isn't? EDIT: To submit a new issue to Prettify, I'd like to know what version Stack Overflow uses. 21-May-2009?...
8
votes
1answer
322 views

Elixir Syntax Highlighting [duplicate]

Can we please have syntax highlighting for Elixir? I've had a look at the editor advanced help and Google's library documentation to find that it's not yet supported. Nonetheless I thought I'd ask ...
13
votes
1answer
257 views

Syntax highlighting for C doesn't properly recognize `restrict` as a keyword [duplicate]

And while we're at it, C11 adds some keywords like _Atomic as well. Is this the right way to submit requests for addition, or would it be better to ask for it in the 'Google Code Prettify' project? ...
2
votes
1answer
485 views

SQL syntax highlighting bug in StackOverflow [duplicate]

StackOverflow engine treats backslash character \ as an escape symbol for string literals. But backslash is NOT an escape symbol in SQL. So, simple statement select '\' from dual produces incorrect ...
10
votes
1answer
169 views

Fix for $# code color highlight [duplicate]

I am a Perl coder and I would like to ask Stack Overflow to fix code color highlights for # comments. It works properly for real comments, such as # this is a comment but when $# is in code, such ...
5
votes
1answer
443 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 ...

15 30 50 per page