in reply to Dynamically alter shtml file

How do you "get the file"?

Don't you get the shtml files via HTTP? If you would do so, they should be already processed and your highlighter can work through the resulting html code.

Replies are listed 'Best First'.
Re^2: Dynamically alter shtml file
by punch_card_don (Curate) on Apr 04, 2009 at 16:19 UTC
    No, I've been just reading them in directly:
    open(FILE, $file); @LINES = <FILE>; close(FILE);
    Get 'em via HTTP - of course - perfect. Thanks.
      use LWP::Simple; $content = get $page_url; #and if you want, @LINES = split(/\n/, $content);
      Works like a charm, although I did have to make dynamic adjustments to image src's, external javascript src's, stylesheet href's, and links on the page to account for the new url of the output page. Thanks again.
      append it to text of main file and do it.