User:Jens3/Using color in a template with output=

Using the Invocation template with colored output
converts the piped output to a stay-alone html page. Inside the html text the tag is used which causes mediawiki to not render the tags but to show them directly. When removing the the newlines have to be marked with < /BR> or the newlines have to get protected by \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.

e.g.: equery -N m emacs 2>&1 | aha > equery-emacs.html