18

https://stackoverflow.com/help/formatting says:

Code blocks can be highlighted using Google Prettify. In many cases, the syntax highlighting language will be inferred from the question's tags.

But currently our site uses highlight.js for syntax highlighting. Details here: Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter

So how about updating this paragraph? For instance:

Code blocks can be highlighted using highlight.js. In many cases, the syntax highlighting language will be inferred from the question's tags.

Diff:

  1. Google Prettify -> highlight.js
  2. Use a FAQ link for the inference of a syntax highlighting language because the post currently linked is old and says we use Prettify.

Also how about updating here:

You can use either one of the supported prettify language codes, like ...

to this:

You can use either one of the supported language codes, like ...

2
  • 2
    Same for the tag wiki. Commented May 15, 2021 at 3:38
  • @SebastianSimon Exactly. I wrote and requested an edit for the tag wiki of [syntax-highlighting]. Thanks.
    – nekketsuuu
    Commented May 15, 2021 at 3:46

1 Answer 1

6

Wow, uh... that's a bit embarrassing! Thanks for catching this error. I've updated the page as you recommended. Please let me know if I've missed anything.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .