From 50b8912183b0c669f5e6a9f9ae0172e2ec801bd1 Mon Sep 17 00:00:00 2001 From: Banana Date: Fri, 15 Mar 2013 08:45:03 +0100 Subject: [PATCH] bash colour codes to html in a string --- .../bash-terminal-colors-to-html.php | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 single-functions/bash-terminal-colors-to-html.php 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; +} + +?> + -- 2.39.5