move code syntax highlighting to plugin

This commit is contained in:
zotlabs
2017-05-30 19:50:41 -07:00
committed by Mario Vavti
parent 3a2a7d0508
commit 80c65ea8f3
54 changed files with 7 additions and 23416 deletions

View File

@@ -615,10 +615,7 @@ function bb_code_options($match) {
}
function bb_highlight($match) {
$lang = ((in_array(strtolower($match[1]),['php','css','mysql','sql','abap','diff','html','perl','ruby',
'vbscript','avrc','dtd','java','xml','cpp','python','javascript','js','json','sh']))
? strtolower($match[1]) : 'php' );
return text_highlight($match[2],$lang);
return text_highlight($match[2],strtolower($match[1]));
}
function bb_fixtable_lf($match) {