]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Add bash to text_highlight language list
[friendica.git] / include / text.php
index 67ce7e65e83df258ae041296b951478453066ca6..311422c5751d9af55f2399298a1b4543f94e0c50 100644 (file)
@@ -2030,6 +2030,10 @@ function text_highlight($s, $lang) {
                $lang = 'javascript';
        }
 
+       if ($lang === 'bash') {
+               $lang = 'sh';
+       }
+
        // @TODO: Replace Text_Highlighter_Renderer_Html by scrivo/highlight.php
 
        // Autoload the library to make constants available