Linked Questions
194 questions linked to/from What is syntax highlighting and how does it work?
2
votes
1
answer
775
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 ...
14
votes
1
answer
427
views
Please add support for PowerShell syntax highlighting [duplicate]
StackOverflow currently does not support syntax highlighting for PowerShell. Please add support for this in a future revision.
-2
votes
1
answer
225
views
Syntax Highlighter for Java [duplicate]
It seems the syntax highlighter is not able to handle Java.
Any idea how to help fix this?
A sample code is below, and link1 and links2 in stackoverflow.
try (Statement stmt = con.createStatement())...
1
vote
1
answer
996
views
XML Syntaxhighlight highlights elements in CDATA [duplicate]
If you manually declare code to be XML, code within CDATA is still highlighted, even though it should be treated as text.
Example:
<element test="test">
<![CDATA[<font size="2">&...
13
votes
1
answer
292
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?
...
3
votes
2
answers
165
views
CMD `::` autoformats badly [duplicate]
From How to run a PowerShell script within a Windows batch file
There's an idiom in CMD scripts to use :: as a comment delimiter. (: means a label, so :: gets ignored.) I use it because I think it's ...
3
votes
1
answer
158
views
Code containing HEREDOC is not highlighted correctly [duplicate]
Not sure if this was brought before but I noticed on several occasions that code containing HEREDOC syntax will not be correctly highlighted. Example at
PHP domdocument if statement for when img tag ...
10
votes
1
answer
189
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 as
...
9
votes
1
answer
134
views
How to add syntax highlighting for new language [duplicate]
Is there already a standard way for introducing syntax highlighting for a language (and tag) that did not previously have it?
I would like to have syntax highlighting for the isabelle tag, since code ...
2
votes
2
answers
235
views
Syntax highlighting for MySQL not working [duplicate]
See:
https://stackoverflow.com/posts/7300401/revisions
It doesn't do highlighting when I specify <!-- language: lang-mysql --> (or if the question is tagged mysql), but it will work fine if I ...
13
votes
1
answer
470
views
No syntax highlight for Fortran? [duplicate]
I was checking out this question on SO, and noticed that there is no syntax highlighting for the code snippet.
I realise that Fortran is a pretty obscure language, especially on SO, so I don't really ...
6
votes
3
answers
192
views
Would it be possible for the syntax highlighter to allow for SQL capitalization? [duplicate]
I've noticed that the syntax highlighter for code samples does not work with capitalization for SQL. I just posted a question on SO and had to spend a couple extra seconds to modify it to get the ...
1
vote
1
answer
229
views
Keyword 'let' from LINQ syntax is not supported by syntax highlighting [duplicate]
I found that neither on SO. nor here, on meta, LINQ syntax keyword let isn't being highlighted:
from f in db.Foo
let b = f.Bar
where b.Count == 1
select new FooBar(b);
Please add.
4
votes
2
answers
175
views
First letters of XML attributes not colored correctly if capitalized [duplicate]
If the first character(s) of an XML attribute are capitalized, they don't get colored in the usual attribute way:
<element InitialCap="1" initialLower="2" ALLCAPS="3" SOMEcaps="4" />
It would ...
4
votes
1
answer
217
views
Syntax highlighter bugs on multiple <script> tags [duplicate]
To illustrate, multiple non-script tags works fine:
<element name="value"></element>
<element name="value"></element>
But multiple script tags bugs the highlighter, see the ...