Lighthigher allows to highlight a code block using an html highlighter (such as highlight-js), while keeping any markup/event handling in the code block.
Click on the underlined parts, they are HTML links!
Have a look at the original HTML: the links and event handling are there, but the highlighting is done with highlightjs.
See lighthigher for how that's done!
(** Here are some example of OCaml code. Check out A tour of OCaml for more *)
let n = 5. +. float_of_int 10 ;;
let s = String.concat [ "Hello" ; "World" ]
let _ : 'a -> 'b = failwith "Hey!"