Stack Overflow can highlight text in code blocks for various programming languages. Many of these languages are relevant for in-game scripting. In Minecraft resource/data/behavior packs, .json files define a lot of things these packs feature. There are also Minecraft commands in both editions - which when saved in a file are called .mcfunction files.
Stack Overflow (and "advanced" Markdown in general) does show syntax highlighting for relevant languages: JSON is directly supported, and .mcfunction can be approximated with python or bash highlighting:
Other sites like GitHub can also highlight .mcfunction files directly (probably thanks to the VSCode extension maintained by MinecraftCommands):
Any degree of hightlighting can help tell the difference between comments and actual commands... I have some heavily commented answers where the comments take a large chunk of the code block just to explain what's happening
this question about SNBT highlighting is also related, though several years have passed since.
With these in mind...
Is it possible to enable or implement some highlighting here on Arqade?
Per the instructions in this meta post,
Here are some examples where I think syntax highlighting would be beneficial
In addition, I would like to clarify my question is about adding syntax highlighting to the main site only, and not to this meta site.
It is possible to get mcfunction directly supported. It needs to be implemented for highlightjs. Once that's done, a request needs to be filed using this template.
I found this 5 year old repository that implements mcfunction for highlightjs, but I don't know if it works, if it is up to the core repository's standards, or if it has been tested.

