Linked Questions
194 questions linked to/from What is syntax highlighting and how does it work?
2
votes
2
answers
81
views
Did I do my syntax highlighting wrong? If so, what is the right way? [duplicate]
I tried setting a syntax type based on Jeff's Hints, but it doesn't seem to be working properly. Did I do it wrong?
https://stackoverflow.com/a/8546141/124069
4
votes
3
answers
162
views
Shouldn't the code formatter highlight the word "having" for SQL syntax? [duplicate]
In this SQL statement, notice the color of the word "having" versus the words "select", "from", "where", and "group by"
select
cu.name
,cu.email
,count(*) as books_purchased
from
customers cu
,...
0
votes
1
answer
199
views
Syntax highlighting thrown off by apostrophe in comment [duplicate]
I noticed a bug in the syntax highlighting for Objective-C code. See this post: https://stackoverflow.com/questions/25623716/error-no-such-table-sqlite
The apostrophe in a comment in the second code ...
4
votes
1
answer
178
views
JavaScript regex syntax highlighting issue [duplicate]
if(!/^https?:\/\//.test(val) && foo == 'bar') {
val = 'http://' + val;
}
As you can see, the // causes the highlighter to switch to comment mode which is incorrect.
3
votes
1
answer
213
views
Syntax highlighting for C++ code, initializing with `()` vs `=` [duplicate]
I had initially asked this on Code review meta but @Mast in the comments suggested me to ask this on the main meta site.
I have tested it on Stack overflow, Code review, and Software Engineering sites....
3
votes
2
answers
156
views
Syntax highlighting broken [duplicate]
Syntax highlighting seems to have been broken recently. For example see the code example at:
WPF TextBlock Padding is cutting off text
All the attributes' first letters are black. Is this a bug?
......
3
votes
2
answers
177
views
Syntax Highlighting - Two Character Identifiers [duplicate]
I noticed a bug/feature with the syntax highlighting where two-character capitalized identifiers are not being highlighted inside code blocks. This does not appear to be a problem in the case of two-...
3
votes
1
answer
135
views
My syntax highlighting stopped working on Stack Overflow [duplicate]
All of a sudden, my syntax highlighting stopped working on Stack Overflow which can be seen in this answer. And now, even if I edit that post, try to post a question or an answer, there's no syntax ...
2
votes
1
answer
147
views
String not displaying correctly [duplicate]
I just answered my own question here (GeoPheonix answered in the comments but didn't provide a full answer), and the string in the code isn't displaying correctly:
This may seem like a minor nitpick ...
1
vote
2
answers
172
views
Syntax highlighting fails to highlight "abstract" correctly [duplicate]
I've just noticed that the syntax highlighting no longer highlights C# "abstract" keyword correctly:
Is this an abuse of the type system?
I think it used to work correctly before. Anything changed?
4
votes
2
answers
131
views
Incorrect C# syntax highlighting with @"\" [duplicate]
The title really says it all, but when I use the @ character to ignore escapes in a string literal @"Like This\", the \" is interpreted as a quote character belonging to the string rather than the ...
11
votes
0
answers
189
views
Style XML element in code block messes up syntax highlighting coloring [duplicate]
If you put some XML in a code block (by indenting by 4 spaces) and one of the tags is <Style> it will mess up the syntax highlighting of the generated result.
This works:
<Style2 Foo="...
5
votes
2
answers
90
views
Incorrect syntax highlighting with non-ASCII characters [duplicate]
The C# highlighter (and possibly others) chokes on non-ASCII characters in class names, as can be seen in this post:
Trouble with if circulating
EDIT: Prettify bug report submitted.
5
votes
1
answer
144
views
Bash count Syntax Highlighting problem [duplicate]
for example:
Is there a bash command that can tell the size of a shell variable
has a few responses which involve the bash ${#x} construct. It incorrectly treats the hash like a comment.
...
11
votes
1
answer
366
views
Python's "//" operator treated as a comment [duplicate]
s = 5 // 2
if s == 2:
print(s)
As you can see the highlighting system treats Python's floor division operator // as the beginning of a comment. But // is not a comment in Python. Is there any ...