1. Home
  2. Knowledge Base
  3. Custom Themes
  4. Article Prettify: Code blocks

Article Prettify: Code blocks

To add a block of code to the article, click Code block in the formatting panel of the article:

Code blocks

Insert your code in the gray area that appears.

With the Article Prettify enabled, different elements of the code will be highlighted. This was done to help read the code faster and easier.

Here's what HTML and JS code is going to look like:

HTML code

HTML Code Block Aarhus

JS code

JS Code Block Aarhus

Was this article helpful?
%s
— %s