Syntax Highlighting with PrismJS
If the document contains C# examples, the exported file can highlight them with the built-in PrismJS integration.
Enable highlighting
Open the document settings, expand Reading interface, and enable Highlight C# syntax with PrismJS. The required CSS and JavaScript are embedded into the exported HTML, so highlighting works offline and does not require separate custom code.
Mark C# code blocks
Apply the language-csharp class to the code element. Imported Markdown code fences marked as csharp already use this class.
<pre><code class="language-csharp">public class Example {}</code></pre>
PrismJS reruns automatically when the reader opens another page inside the exported document.