Skip to main content

Questions tagged [syntax-highlighting]

For questions about the syntax highlighting performed inside code blocks on Stack Exchange sites.

0 votes
0 answers
40 views

Syntax Highlighter and TypeScript/JavaScript issue [duplicate]

I noticed that syntax highlighter on StackOverflow (noticed exact same issue on ChatGPT as well) has problem with handling snake case. It colors just the first segment of identifier and leaves rest ...
Jarek's user avatar
  • 101
10 votes
0 answers
106 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 ...
Jerry's user avatar
  • 203
6 votes
1 answer
144 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 ...
Friedrich's user avatar
  • 163
4 votes
1 answer
173 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 ...
Tripple Moon's user avatar
21 votes
0 answers
103 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. ...
kriegaex's user avatar
  • 571
10 votes
0 answers
144 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 ...
kriegaex's user avatar
  • 571
1 vote
1 answer
147 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 ...
user1934428's user avatar
4 votes
0 answers
127 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 ...
LucF's user avatar
  • 77
4 votes
0 answers
34 views

Add confirmation for saving a tag's syntax highlighting change

♦ moderators have the ability to assign to every tag a default language for syntax highlighting (see the FAQ): When clicking the Save button, all that happens is that the button gets disabled, which ...
Glorfindel's user avatar
  • 252k
3 votes
0 answers
223 views

Add syntax highlighting support for Solidity

Recently, I have been active a lot on the Ethereum site. It got a recent design overhaul which shows that some progression is happening. Unfortunately, one of the main issues is that the Solidity code ...
Throvn's user avatar
  • 131
7 votes
1 answer
132 views

Is the language name case sensitive for syntax highlighting?

I often use the syntax-highlighting feature of Stack Exchange in order to make my code easier to read. ```lang-python for k in range(0, 10): print(k) ``` for k in range(0, 10): print(k) ...
Toothpick Anemone's user avatar
5 votes
1 answer
196 views

Why does "lang-bash" not highlight a list of commands and their output but adding the [bash] tag to a question does?

Why does <!-- language-all: lang-bash --> not highlight a list of commands and their output (like it used to) but adding the [bash] tag (instead) to a question does? Example question: FQDN ...
SebMa's user avatar
  • 181
0 votes
0 answers
119 views

Why is my Python code not highlighted? [duplicate]

I have posted the following code in my question: import numpy as np for i in range(3): n = np.random.randint(2, 10000) m = np.random.randint(1, n) A = np.random.randn(m, n) * ((1 / m) ** ...
BinChen's user avatar
  • 119
12 votes
1 answer
215 views

Syntax highlighting changes in the middle of a token; resolved in a later version of Highlight.js

The code in my answer over at Stack Overflow highlights very strangely: I discovered this at Stack Overflow, but it affects just as much all other Stack Exchange sites with highlighting enabled (I ...
user3840170's user avatar
  • 4,078
2 votes
0 answers
76 views

Explicitly use Highlight.js auto detected language for a code block [duplicate]

Highlight.js does a reasonable job of automatically highlighting blocks of code in an unknown language. Sometimes as I'm writing a post which has blocks from multiple languages, console commands, log ...
Greedo's user avatar
  • 469

15 30 50 per page
1
2 3 4 5
32