Javascript Syntax Highlight
This is a syntax highlighting script for LOLCODE made in javascript. You can download it and use it on (this?) your site.
By default it does not have lolcode highlighting (Duh), but it can easily be added. Copy the code below into a new file called lolcode.js which you place in the language folder.
LANGUAGES.lolcode = {
defaultMode: {
lexems: [IDENT_RE],
contains: ['string', 'comment', 'number', 'function'],
keywords: {
keyword: {'HAI': 1, 'KTHXBYE':1, 'CAN':1, 'INVISIBLE':1, 'VISIBLE':1, 'I':1, 'HAS':1, 'A':1, 'ITZA':1, 'ITZ':1, 'IZA':1, 'IZ':1, 'IM':1, 'IN':1, 'YR':1, 'OUTTA':1, 'PLZ':1, 'AWSUM':1, 'THX':1, 'O':1, 'NOES': 1, 'GIMMEH': 1, 'ON': 1, 'RLY':1},
built_in: {'UP':1, 'NERF':1, '!!':1, 'BIGGER':1, 'THAN':1, 'SMALLER':1}
}
},
case_insensitive: false,
modes: [
QUOTE_STRING_MODE,
BACKSLASH_ESCAPE,
C_NUMBER_MODE,
{
className: 'function',
begin: 'SO IM LIKE ', end: '$',
lexems: [UNDERSCORE_IDENT_RE],
keywords: {'SO': 1, 'IM': 1, 'LIKE': 1, 'WITH':1},
contains: ['title', 'params']
},
{
className: 'comment',
begin: 'BTW', end: '$'
}
]
};//LOLCODE