I have some chat logs I’m trying to paste into discourse:
[ 2013.07.27 03:03:37 ] a PATRIOT > grrr we still haven't finished our fitting [ 2013.07.27 03:03:43 ] a PATRIOT > sorry it's gonna be a few minutes [ 2013.07.27 03:03:45 ] Bronya Boga > we can wait [ 2013.07.27 03:03:48 ] a PATRIOT > k [ 2013.07.27 03:04:13 ] Zed Vudu > Oh, it's gonna be so BROUGTEN you'll be remembering the brang for a long time! [ 2013.07.27 03:04:37 ] Cethion > Parse error [ 2013.07.27 03:13:38 ] a PATRIOT > i literally have [ 2013.07.27 03:13:45 ] a PATRIOT > 12 thorax and 6 vexor hulls sitting in SMA [ 2013.07.27 03:13:46 ] a PATRIOT > unfit [ 2013.07.27 03:26:56 ] Sir Lomax > 7o
I’ve tagged the block as
irc, but there seems to be some auto-detection going wrong. In this preview the code block has
class='irc matlab'. On my forum, it has
class='irc applescript'. It causes what I’m assuming are applescript keywords to show up as bold and numbers to be highlighted.
I’m not sure how to tackle this problem. How does the highlighting work? What library is it? How can I extend it to handle the markup for these chat logs?