Contents
C
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
}
JavaScript
document.addEventListener("DOMContentLoaded", (event) => {
document.querySelectorAll("pre[class*=language-]").forEach((element) => {
element.classList.add("match-braces");
element.classList.add("rainbow-braces");
});
document.querySelectorAll("code[class*=language-]").forEach((element) => {
element.classList.add("diff-highlight");
});
Prism.highlightAll();
});
Lisp
(defun factorial (n)
(if (= n 0) 1
(* n (factorial (- n 1)))))