Skip to content

Instantly share code, notes, and snippets.

@csgordon
Created March 11, 2026 01:54
Show Gist options
  • Select an option

  • Save csgordon/ba9553e11286d32879c2ee4dedfd99f1 to your computer and use it in GitHub Desktop.

Select an option

Save csgordon/ba9553e11286d32879c2ee4dedfd99f1 to your computer and use it in GitHub Desktop.
\<html:link>[rel]{stylesheet}[href]{https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/dark.min.css}
\<html:script>[type]{module}{
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/es/highlight.min.js';
import ocaml from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/es/languages/ocaml.min.js';
hljs.registerLanguage('ocaml', ocaml);
hljs.highlightAll();
}
\p{Now we can syntax highlight some code}
\<html:pre>{\<html:code>[class]{language-ocaml}{let id x = x;;}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment