PowershellPowerShell and batch syntax highlighting is off all around and neither works correctly
(left: StackExchange ;Stack Exchange; right: Microsoft's VS CodeVisual Studio Code)
- It appears batch and PowershellPowerShell syntax have been linked to each other, which simply doesn't work for either due to the different ways variables and other characters are used between the two:
- PowershellPowerShell syntax only syntax highlights if first letter of command or parameter is capitalized, leading to a ridiculous amount of posts not syntax highlighted unless edited, as it doesn't syntax highlight if the entire command/parameter is in all lowercase or all uppercase (latter also affecting batch), which it should since PowershellPowerShell isn't case aware
- PowershellPowerShell and batch syntax highlights don't apply as they should when code fences are used (also an issue with other languages), regardless whether the syntax is specified after the code fence or not - the only way to reliably have it syntax highlighted is to use HTML syntax comment
<!-- language-all: lang-powershell -->
orlang-bat
(wassit was also an issue with Prettify)
- PowershellPowerShell and batch syntax highlights don't apply as they should when code fences are used (also an issue with other languages), regardless whether the syntax is specified after the code fence or not - the only way to reliably have it syntax highlighted is to use HTML syntax comment