1. string update, 2. pretty print json blobs

This commit is contained in:
redmatrix
2016-06-17 14:58:03 -07:00
parent f6d7628254
commit 2793086c0d
3 changed files with 1201 additions and 1130 deletions

View File

@@ -493,7 +493,7 @@ function bb_code($match) {
function bb_highlight($match) {
if(in_array(strtolower($match[1]),['php','css','mysql','sql','abap','diff','html','perl','ruby',
'vbscript','avrc','dtd','java','xml','cpp','python','javascript','js','sh']))
'vbscript','avrc','dtd','java','xml','cpp','python','javascript','js','json','sh']))
return text_highlight($match[2],strtolower($match[1]));
return $match[0];
}