aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-17 14:58:03 -0700
committerredmatrix <git@macgirvin.com>2016-06-17 14:58:03 -0700
commit2793086c0d65c24e172f7260129968eb80705018 (patch)
tree6a5100c1b35bf75caf2d118bf8dc9ad159b2c939 /include/bbcode.php
parentf6d76282549c562120417cbdd111109add4f7672 (diff)
downloadvolse-hubzilla-2793086c0d65c24e172f7260129968eb80705018.tar.gz
volse-hubzilla-2793086c0d65c24e172f7260129968eb80705018.tar.bz2
volse-hubzilla-2793086c0d65c24e172f7260129968eb80705018.zip
1. string update, 2. pretty print json blobs
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index b720355af..0bf326506 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -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];
}