1 minutes read

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