Syntax Highlighting in Script Blocks
Script blocks right now are a bit bland. Would be nice to see some syntax highlighting, or better copy/paste functionality
Script blocks right now are a bit bland. Would be nice to see some syntax highlighting, or better copy/paste functionality
Log in to comment and vote
Comments1
Amaranth Clock
Jul 7
When inserting a code block into a KB article, it would be a significant improvement to have syntax highlighting based on the selected language (e.g. PowerShell, Python, Bash, SQL).
Currently, code blocks render in plain monospace with no colouring — which works, but makes longer scripts harder to read at a glance, especially for engineers who are used to working in coloured editors like VS Code or PowerShell ISE.
What we'd love to see:
A language selector on the code block (PowerShell, Python, Bash, SQL, etc.)
Colour-coded syntax based on the selected language (keywords, strings, comments, variables)
Ideally consistent with common themes like VS Code Dark or Monokai