From: Banana Date: Fri, 15 Mar 2013 07:45:03 +0000 (+0100) Subject: bash colour codes to html in a string X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=50b8912183b0c669f5e6a9f9ae0172e2ec801bd1;p=dolphin.git bash colour codes to html in a string --- diff --git a/single-functions/bash-terminal-colors-to-html.php b/single-functions/bash-terminal-colors-to-html.php new file mode 100644 index 0000000..3ddd361 --- /dev/null +++ b/single-functions/bash-terminal-colors-to-html.php @@ -0,0 +1,60 @@ +$1', + '$1', + '$1', + '$1', + '$1', + '$1', + '$1', + '$1', + '$1' + ); + + $ret = preg_replace($_colorPattern, $_colorReplace, $string); + } + + return $ret; +} + +?> +