You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
31"we get enough language requests that if we added them all, we'd have a long list and a big problem." Do you though? Looking at syntax-highlighting, this is the top language request — ever. The only other currently outstanding language request with more than 15 votes here is Fortran (32 votes, 11k SO questions).– mbaumanCommented Aug 12, 2021 at 20:24
-
13It's also worth noting that the client-side performance was discussed in now-deleted comments — including more comments by the highlights.js maintainer. archive.is/4CBRZ– mbaumanCommented Aug 16, 2021 at 20:38
-
17"While any one language might be a good addition, we get enough language requests that if we added them all, we'd have a long list and a big problem." But you don't have to add every language that gets requested. You can look at the popularity of the language based on the StackOverflow activity and make a decision. Here, there is a language that is significantly more active than many others that already have highlighting. If there is a strong need to keep the size of the highlight file constant, you could remove support for one of the languages that are now very inacticve.– Kristoffer CarlssonCommented Sep 23, 2021 at 7:46
-
9What criteria do you use to decide which languages get added? It seems that by any reasonable metric, Julia should be added!– a06eCommented Dec 6, 2021 at 14:52
-
1@Catija Do you have an update on the syntax highlighting progress? There are several languages that need it. For example, F# is still not supported.– bmitcCommented Apr 10, 2022 at 6:02
-
1@bmitc There's no change and, as far as I'm aware, no immediate plans to work on this.– CatijaCommented Apr 11, 2022 at 14:36
-
5It's worth noting that the lack of supported languages is ten times worse due to the known misimplementation of Highlights.js. Stop guessing/auto-detecting a language when you KNOW it will be incorrect– mbaumanCommented Apr 11, 2022 at 16:08
-
2hi @Catija, is there any news on this? Because I asked the same question about PowerShell, which I'd hope is one of those "really popular, newer languages" since it's now more popular than bash in terms of SO Qs. insights.stackoverflow.com/…– PxtlCommented Aug 9, 2023 at 17:29
-
1Hey @Pxtl I don't have any additional updates at this point. I can tell that there are likely several languages that would benefit from expansion of the list of languages we offer highlighting for. We acknowledged this even when I wrote this answer two years ago but the organization internally has morphed quite a bit from when I posted and the team that would have done the work to investigate this has different priorities than they did at the time.– CatijaCommented Aug 9, 2023 at 19:18
-
2I think this is a poor reason. I can't imagine it being too too difficult to have the server keep track of what languages are used in a post, and then only send specific highlighting scripts as needed, and also have the client request more if inline edits happen that require them.– starballCommented Nov 3, 2023 at 2:51
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_`
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>
[example](https://example.com)
<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. stack-overflow), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you