aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-30 19:50:41 -0700
committerzotlabs <mike@macgirvin.com>2017-05-30 19:50:41 -0700
commitdfc0d4cf59a9de98bc088c80e75877d9fc9fcab9 (patch)
tree705fa6a28cfe3cef7a32deed8b3731aa83c6d34c /include/bbcode.php
parentbfad624528499e27125fae18799940319fc32c6d (diff)
downloadvolse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.tar.gz
volse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.tar.bz2
volse-hubzilla-dfc0d4cf59a9de98bc088c80e75877d9fc9fcab9.zip
move code syntax highlighting to plugin
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index d12630e23..6805f008c 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -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) {