Questions tagged [syntax-highlighting]
For questions about the syntax highlighting performed inside code blocks on Stack Exchange sites. For reporting bugs or feature requests read the tag wiki first.
471 questions
10
votes
0
answers
128
views
Copying from `pre > code`s on SE prepends a license comment that might be interpreted as code when pasted
The last time that I extracted any content from SE, no ECMAScript intercepted that process to prepend license information.
However, recently, at stackoverflow.com/a/28128802, I duplicated a text/x....
14
votes
0
answers
99
views
Could we revisit the lack of PowerShell auto-highlighting?
Currently Super User's one of the sites that's enabled the new copy interface. As part of this, we requested for languages that could use language highlighting, and PowerShell was one of the requests. ...
19
votes
1
answer
119
views
Language labels on code blocks look as though they're part of the code in the block. They are also copied along with the code. Can this be changed?
After encountering the issue with misidentified languages in code blocks, I went to look at my old questions and answers in case any of them were affected.
Even in situations where the language was ...
27
votes
1
answer
498
views
The language chosen for automated labels in code blocks are sometimes incorrect
Per kristinalustig's request, I'm posting a standalone MSE report for all the different languages being guessed incorrectly via the new code block labeling feature that rolled out as part of the copy-...
3
votes
0
answers
53
views
Unable to make syntax highlighting working [duplicate]
Disclaimer: I'm more a reader than a contributor on Stackoverflow, so I may have missed something obvious for you all.
I've posted this question (about some typescript issue), and added the Typescript ...
4
votes
0
answers
82
views
Support code syntax highlight for vlang
I've tried:
<!-- language: v -->
<!-- language: vlang -->
none works, so is vlang supported, if not, is there a plan to ?
An example where I tried to use it: Speed of Golang Vs Java
6
votes
1
answer
189
views
Syntax highlighting works in the preview only, not in the rendered post
I have manually specified the lang-cmake syntax highlighting for the code blocks in my question:
How to instruct the CMake to use a specific CMAKE_GENERATOR_TOOLSET?
The syntax highligting works ...
27
votes
2
answers
630
views
Syntax highlighting when using a `lang-*` alias (and some "main" language codes) is broken
As cocomac points out in the comments, this specific instance of the issue may be explained by this; so the example below, that showcases the bug for lang-vim, is an unfortunate one.
However:
The ...
10
votes
0
answers
146
views
Upgrade highlight.js library, due bad assembly code highlighting
When I edited a SO post, I noticed an error in highlighting assembly code sample.
Not only formatting is not applied when using assembly nor x84asm language identifiers, but it looks bad even if using ...
6
votes
1
answer
261
views
Syntax highlighting for Vimscript
A moderator on Vi & Vim SE recently announced syntax highlighting for lang-vimscript (seems to be synonymous to lang-vim) to be working: It looks like lang-vimscript is supported for code ...
4
votes
1
answer
219
views
Syntax highlighting of Makefiles
The syntax highlighting is bugged for Makefiles.
As per https://meta.stackexchange.com/a/356459/1288919 I used:
```lang-makefile
Current output for: https://stackoverflow.com/a/77223358/22510042
...
21
votes
0
answers
117
views
Support 'text' as an alias for 'none' in syntax highlighting
For years, it has driven me nuts, having to use ```text to deactivate syntax highlighting on most markdown-enabled platforms like GitHub, but ```none or ```lang-text specifically on Stack Overflow. ...
11
votes
0
answers
224
views
Groovy syntax highlighting
According to the list of supported languages for syntax highlighting, Groovy has been missing for many years, despite the fact that highlight.js supports Groovy and Groovy is not a particularly exotic ...
1
vote
1
answer
184
views
Funny colouring of Hexdump
I recently posted this question on apple.stackexchange which contains a hex dump, like this:
00000210: 616e 7369 6f6e 0a20 2020 2020 2020 5f08 ansion. _.
Different to here (on Meta ...
4
votes
0
answers
137
views
Can you please add Pine to the list of "Language codes currently available on Stack Exchange"?
As a follow-up to this question on MSE and this one on MSO, I would like to know if it is possible to add Pine to the list of "Language codes currently available on Stack Exchange" appearing ...