LGforum (2803)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Mr.Easybb (1586)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Bloodbath (745)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Rukiafan (533)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Dom (513)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
puppycheese (446)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
pedro (330)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Neymar (301)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Hitsu (281)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 
Flora (275)
tips - A Mini Code Syntax Highlighter Vote_lcaptips - A Mini Code Syntax Highlighter Voting_bartips - A Mini Code Syntax Highlighter Vote_rcap 


A Mini Code Syntax Highlighter

LGforumLGforum
Status : Working to restore AWC!

Posts : 2803
Join date : 2011-10-05
Age : 27
Location : UK
Mon 02 May 2016, 09:39
For those of you who don't want a big complicated syntax highlighter on their code boxes, I made a nice mini one that can immediately be added very easily to any site. I mean any site, not just Forumotion.

The code for it is here: https://gist.github.com/3273776

Very simple to install, just add the Javascript to whatever site you want to use it.
Its a tiny little thing, so there isn't much highlighting, it will highlight strings, numbers, operators, and keywords like if else etc... but due to its tiny size it is really fast and lightweight on your site.

Hope it comes in handy for some!

#tips #panda