new ticket from slaven
[andk-cpan-tools.git] / bin / colorterm-to-html.pl
blobb9d39789e06b60cf54e582255c8e307d8f132898
1 #!/usr/bin/perl -0777 -pl
4 s!\&!\&!g;
5 s!"!"!g;
6 s!<!&lt;!g;
7 s!>!&gt;!g;
8 s!\e\[1;3[45](?:;\d+)?m(.*?)\e\[0m!<span style="color: blue">$1</span>!sg;
9 s!\e\[1;31(?:;\d+)m(.*?)\e\[0m!<span style="color: red">$1</span>!sg;
10 #s!\n!<br/>\n!g;
11 s!\r\n!\n!g;
12 s!.+\r!!g;