Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Syntax Formatting for codeblocks in AEM Output


Level 2

I am using AEM assets to create documentation. I have a document with a lot of codeblocks. Is there any way to do syntax highlighting of code?


I tried using the outputclass attribute for the codeblock, but that did not seem to do anything.

1 Reply



Could you note use the Text Core Component, create a "Code" paragraph style in the Policy (that wraps with the <code>), and then have your favorite JS-based code highlighter target `.cmp_text code` ?