-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
To summarize the issue if someone manually specifies a particular language for a code block: (below ruby
is the language specified)
```ruby
def launch
@rocket.fire!
end
```
Only one of two things should happen.
- If the "ruby" grammar is registered with Highlight.js, it should be used.
- If not the code block should remain unhighlighted. (operationally an error could be shown)
What actually happens:
StackOverflow RANDOMLY picks a language to use for highlighting, which will always be WRONG and even worse - unpredictable.
What can you do? Post on the linked to thread on StackOverflow... post new threads that bring this to StackOverflows attention(?), contact StackOverflow support... I'm honestly not sure how to get them to fix this. The fix is trivially simple and no one at StackOverflow has yet explained why this cannot or should not be changed.
This thread is created to serve as the primary thread to point people to when they post issues here that are the result of StackOverflows refusal to fix this. Other issues opened will be marked as duplicates and pointed here.