User:Jens3/Using color in a template with output=
Using the Invocation template with colored output
app-text/aha converts the piped output to a stay-alone html page. Inside the html text the < pre> tag is used which causes mediawiki to not render the < span color=...> tags but to show them directly. When removing the < pre> the newlines have to be marked with < /BR> or the newlines have to get protected by < pre>\n< /pre>. When copying the output with the clipboard the newlines on the console may break the formatting in the mediawiki.
Several commands check if the output goes to the console or to a pipe and modify their output.
equery -N m emacs 2>&1 | aha > equery-emacs.html