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.
                468 questions
            
            
            
                3
            
            votes
        
        
            
                0
            
            answers
        
        
            
                51
            
            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
        
        
            
                81
            
            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
        
        
            
                182
            
            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
        
        
            
                616
            
            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
        
        
            
                143
            
            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
        
        
            
                256
            
            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
        
        
            
                216
            
            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
        
        
            
                116
            
            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. ...
                
            
       
        
            
                10
            
            votes
        
        
            
                0
            
            answers
        
        
            
                217
            
            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
        
        
            
                176
            
            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
        
        
            
                135
            
            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 ...
                
            
       
        
            
                4
            
            votes
        
        
            
                0
            
            answers
        
        
            
                38
            
            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 ...
                
            
       
        
            
                3
            
            votes
        
        
            
                0
            
            answers
        
        
            
                311
            
            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 ...
                
            
       
        
            
                7
            
            votes
        
        
            
                1
            
            answer
        
        
            
                153
            
            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)
...
                
            
       
        
            
                5
            
            votes
        
        
            
                1
            
            answer
        
        
            
                220
            
            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 ...