Linked Questions
194 questions linked to/from What is syntax highlighting and how does it work?
1
vote
1
answer
126
views
'output' keyword isn't recognized by the syntax highlighter in SQL code blocks [duplicate]
The highlighting for SQL code blocks doesn't appear to recognize the keyword 'output'. Please see Showing column twice in a query, second time showing data post update/set for an example. Note that '...
4
votes
0
answers
200
views
Syntax highlighter misbehaves with PostScript code [duplicate]
This is probably not the most important thing, but since uservoice is closed, here's a feature request.
The syntax highlighter for code blocks really screws up on PostScript code, making it ...
11
votes
1
answer
243
views
Python's “//” operator wrongly treated as a comment (part 2) [duplicate]
SO's Google code prettify on python wrongly handles // (floor division) as a C-style comment, as noted here, even when the question is tagged python.
Here is a more recent example from this SO ...
8
votes
1
answer
145
views
Bug with class variable highlighting in Ruby code blocks [duplicate]
It appears that Ruby class variables aren't fully highlighted on Stack Overflow:
class Foo
@class_instance_var = 1 # fine
@@class_var = 2 # not fully highlighted
end
The class instance ...
2
votes
1
answer
73
views
Suggesting a modification to a wiki post [duplicate]
I have been trying to figure out the Prettify (<!-- language: lang-or-tag-here -->) languages tags.
Language Codes:
default
lang-none
lang-bash, lang-bsh, lang-csh, lang-sh
lang-c, ...
1
vote
0
answers
172
views
Syntax highlighting for shell sessions? [duplicate]
Edit: I've opened an issue for this in the code-prettify project on GitHub.
The author of the question Why does bash login shell break here-doc command string argument? noted in the comments that:
...
8
votes
0
answers
125
views
Why are IF and ELSE colored in PHP, but ELSEIF is not? [duplicate]
I just wrote an answer on StackOverflow. I was describing a if-elseif-else algorithm in PHP and noticed, that the if and else expressions are in blue color, whereas the elseif term stays black. Is ...
1
vote
1
answer
52
views
How do I preserve the code's color when I ask in a webpage's board? [duplicate]
When I ask question about java code ,
I copy the code in eclipse. And then I paste the code on the web board like here.
But the code's color become black only. Red, blue colors are not showing.
How ...
6
votes
0
answers
120
views
Can we prettify makefile code? [duplicate]
I was wondering if there is a makefile prettify language tag that I can add to highlight variables, flags or whatever prettify is able to identify.
As mentioned in the comment by Frederic, I'm ...
6
votes
0
answers
93
views
We would like formatting for LOLCODE [duplicate]
This question is a very good question about LOLCODE code:
Down with FizzBuzz... LOL
The formatting is pretty good except for the comments, which aren't formatted as comments.
I can see this being ...
2
votes
1
answer
58
views
How to switch off syntax highlight in cited code? [duplicate]
Suppose some code snippet that appears to be some specific syntax like C in this case, and I want to format it like plain text:
```
#include <code>
```
On stackexchange, this will be rendered ...
6
votes
0
answers
84
views
What are the chances of getting auto-prettier code formatting on code blocks on Stack Overflow? [duplicate]
This answer taught me that highlighting a code block and clicking the curly brackets icons auto-formats the code block.
Many developers, me included, are used to the comfort of format-on-save ...
2
votes
0
answers
95
views
Syntax highlighting of single line comments ending with backslash broken [duplicate]
C:
#include <stdio.h>
int main(){
printf("Path to typical Windows directory: ");
// We need to escape backslashes: \
printf("C:\\Windows\\\n");
printf("Can you see it?\n");
...
2
votes
0
answers
76
views
Explicitly use Highlight.js auto detected language for a code block [duplicate]
Highlight.js does a reasonable job of automatically highlighting blocks of code in an unknown language. Sometimes as I'm writing a post which has blocks from multiple languages, console commands, log ...
1
vote
0
answers
76
views
Please update syntax coloring to support underscores in JavaScript number literals [duplicate]
1000000
1_000_000
Both these literals are modern ways to represent the same number, but the syntax coloring stops at the underscore.
I hope this can be fixed.
Turns out the answer is:
Stack Exchange ...