cookutils rev 1143
lighttpd/index.cgi: syntax_highlighter(): fix files colorization/links
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 23 00:13:33 2019 +0300 (2019-08-23) |
parents | e1f21525f6be |
children | 2cd010c6ba96 |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Thu Aug 22 23:54:42 2019 +0300 1.2 +++ b/lighttpd/index.cgi Fri Aug 23 00:13:33 2019 +0300 1.3 @@ -662,9 +662,11 @@ 1.4 print part1 part2 part3 part4; 1.5 }' | \ 1.6 sed "s|\[0m/|/\[0m|g; 1.7 + s|\[m/|/\[m|g; 1.8 s|\[\([01]\);3\([1-7]\)m|<a class='c\2\1'>|g; 1.9 s|\[\([01]\);0m|<a class='c0\1'>|g; 1.10 s|\[0m|</a>|g; 1.11 + s|\[m|</a>|g; 1.12 s|^\(lrwxrwxrwx\)|<span class='c61'>\1</span>|; 1.13 s|^\(-rwxr-xr-x\)|<span class='c21'>\1</span>|; 1.14 s|^\(-rw-r--r--\)|<span class='c31'>\1</span>|;