Changeset 22739 for util

Show
Ignore:
Timestamp:
10/24/08 18:08:56 (3 months ago)
Author:
azawawi
Message:

[util/smartlinks.pl] Added STD_syntax_highlight-ed hyperlinks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/smartlinks.pl

    r22578 r22739  
    579579 
    580580    my $nlines = $to - $from + 1; 
    581  
     581    my $hilited_file = $file; 
     582    $hilited_file =~ s{t/spec/}{}; 
     583    $hilited_file =~ s{/([^/]+)\.t$}{/_$1.html}; 
    582584    my $html = <<"_EOC_"; 
    583585<p>From $file lines $from&ndash;$to$stat:<span id="smartlink_skip_${snippet_id}"> <a href="#smartlink_skipto_${snippet_id}">(skip)</a></span></p> 
     
    586588</div> 
    587589<span id="smartlink_skipto_${snippet_id}">&nbsp;</span> 
     590<a href="http://feather.perl6.nl/~azawawi/html/$hilited_file" target="_blank"> 
     591STD_syntax_highlight-ed $file 
     592</a> 
    588593_EOC_ 
    589594    $snippets[$snippet_id] = $html;