Add syntax highlighting to a code snippet in knowledge articles.
Programmers and Developers can benefit from the following guidelines, to enhance code readability and collaboration within community forums, blogs, and wiki articles.
- In the Article body section, place the cursor where you want to insert the code snippet.
- Click the insert/edit code sample icon
on the toolbar.

- In the Insert/Edit code sample dialog box, select a markup or programming language from the Language list.

- In the text box after the Language list, enter your code.
Alternatively, you can copy the code from an external source and paste it.
- Click Ok.
Below is an example of the code with syntax highlighting applied.

- (Optional) Edit the code by double-clicking the code snippet.