Codeblocks

Toon je code in stijl met syntax highlighting, macOS window controls en een kopieerfunctie.

function helloWorld() { console.log("Hello, Solora!"); }
<sol-code language="javascript" label="index.js"> console.log("Code goes here"); </sol-code>

API Referentie

Attribuut Type Default Beschrijving
language of lang string "javascript" De programmeertaal voor Prism.js syntax highlighting (bijv. html, css, php, bash).
label string - De bestandsnaam of titel die gecentreerd in de macOS menubalk wordt getoond.