Linked Questions
36 questions linked to/from Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter
163
votes
1
answer
6k
views
Highlight.js: For Real, Please [duplicate]
Background: SE currently uses the Google code-prettify library for syntax highlighting. The possibility of switching has been suggested in the past:
Why doesn't StackOverflow use Highlight.js ...
646
votes
290
answers
90k
views
Formatting Sandbox
Notes:
Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post.
You may also want to take a look at the ...
585
votes
55
answers
64k
views
We're switching to CommonMark
I’m Ham and I’m a developer on the Teams team here at Stack Overflow. Over the past few months, I’ve been heads down working on the way we turn Markdown into HTML when writing and editing posts across ...
68
votes
46
answers
4k
views
Magic wand time - what does your community need?
Continuing in my series of questions to you:
Last week, I heard some great origin stories. This week, I’d like to refocus a bit on what could be better (in your view). I’m very curious about whether ...
311
votes
10
answers
7k
views
Please revert the line-height change!
Just checking how many people feel similar. At least for me, the increased space between lines makes it a nightmare to read. My eyes lack guidance and just feel somehow lost with so much white space.
...
624
votes
1
answer
130k
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 ...
91
votes
2
answers
2k
views
Stop guessing/auto-detecting a language when you KNOW it will be incorrect
The problem: SE asks Highlight.js to autodetect the language when it knows there isn’t any optimal/correct choice for us to make - resulting in very poor outcomes.
Disclaimer: I say this as the ...
49
votes
2
answers
4k
views
Google Code Prettify has been officially discontinued; it's time for SE to maintain their own highlighter
On April 21, 2020, Google announced that their Prettify syntax highlighter, that Stack Exchange uses, has been discontinued and is no longer being maintained. The repository has been marked read-only ...
37
votes
2
answers
2k
views
Improving syntax highlighting language auto-detection
highlight.js's current auto-detection is arguably poor, due in large part to the large number of available languages it has to pick from when not given a language hint.
I suggest that when the ...
25
votes
1
answer
7k
views
Why doesn't Stack Overflow use Highlight.js instead of Google-Code-Prettify? [duplicate]
You heard me. From what I see here, and unless I am looking at a completely wrong place, Google Code Prettify hasn't been updated in almost an year now. Has it been abandoned?
I have just heard about ...
130
votes
2
answers
3k
views
Julia syntax highlighting
Since the syntax highlighter is now highlight.js it would be great to finally get some syntax highlighting for Julia code on Stack Overflow and other sites that might need this tag. Julia is one of ...
17
votes
2
answers
889
views
Is it possible to have a code block that isn't highlighted? [duplicate]
There are some languages that get highlighted incorrectly. Is it possible to specify a code block that does not have any highlighting when it gets displayed?
Here is an small example of CSS that is ...
17
votes
2
answers
365
views
The "Code Language" selection on the tag wiki page isn't in sync with available and supported syntax highlighting options
Moderators can set the default syntax highlighter on tags by selecting a value from a drop-down list:
The community maintains a list of supported languages by inspecting the Highlight.js code file ...
52
votes
1
answer
2k
views
Switching to highlight.js for syntax highlighting
I'd like to offer our syntax highlighter library highlight.js for using on the Stack Exchange sites. I am perfectly aware that you already have one in place and there was a similar discussion a while ...
19
votes
1
answer
233
views
Could we include the Stack Exchange Highlight.js theme in the Highlight.js core package?
Once the final theme is agreed upon would Stack Exchange be open to submitting a PR to add the theme "officially" to the core project so smaller sites who enjoyed your theme could use it on ...