- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2025 07:08 AM
Is there a way to add a new developing language to the code samples in KB articles, e.g., to highlight the syntax for PowerShell?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2025 06:59 AM
Hi - There isn't a simple config option within SN to do this. However the editor, TinyMCE, does support additional languages. You'll have to take on technical debt to do this as it'll require bringing in js and css from Prism (that powers syntax highlighting) and then re-initialised TinyMCE. It's potentially a lot of effort, and a big customisation which could fail.
https://www.tiny.cloud/docs/tinymce/6/codesample/ is the plugin for the TinyMCE editor that enables syntax highlighting. https://prismjs.com/ is what TinyMCE uses for code syntax highlighting
As an example

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2025 06:59 AM
Hi - There isn't a simple config option within SN to do this. However the editor, TinyMCE, does support additional languages. You'll have to take on technical debt to do this as it'll require bringing in js and css from Prism (that powers syntax highlighting) and then re-initialised TinyMCE. It's potentially a lot of effort, and a big customisation which could fail.
https://www.tiny.cloud/docs/tinymce/6/codesample/ is the plugin for the TinyMCE editor that enables syntax highlighting. https://prismjs.com/ is what TinyMCE uses for code syntax highlighting
As an example