provide a default for undefined languages
This commit is contained in:
parent
1dc35db1fe
commit
bc5f73e6c3
@ -495,6 +495,7 @@ 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']))
|
||||
return text_highlight($match[2],strtolower($match[1]));
|
||||
return $match[0];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user