From: Alecs K. <Al...@pe...> - 2004-03-16 14:05:37
|
On Tue, 16 Mar 2004 18:31:48 +0800 James He <ic...@us...> wrote: > So excited for me to fix some bugs in this perl script since > it was not very long since I started to learn Perl. :-) Nice job. Keep going. =) > > BTW, what does ``#!/usr/bin/env perl'' mean? I only use > ``#!/usr/bin/perl''. Perl may be at other locations other than /usr/bin/perl (ie. /usr/local/bin/perl, etc.). man env. > < s/CTRL-(\w+)/<code > class="keystroke">CTRL-$1<\/code>/g;--- > > s/CTRL-([\w+\]])/<code > > class="keystroke">CTRL-$1<\/code>/g; There are also other ctrl keys like CTRL-@, CTRL-[, CTRL-^, etc. So i think we can easily use /CTRL-(.)/ > < s/(Note:?)/<code class="note">$1<\/code>/gi; > --- > > s/(Note[:?\s])/<code > > class="note">$1<\/code>/gi; /(Note[:\s)]/ will do. Btw, the 'tags' file in our CVS was out of date. (ie. no 41.12) 'vim2html.pl' and 'tags' are committed. Check them out. Regards, |