There are many good off-the-shelf syntax highlight...
# dokka
i
There are many good off-the-shelf syntax highlighting javascript packages, but perhaps you want to keep the output pure-HTML