bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] )DUMP now creates valid HTML files


From: Juergen Sauermann
Subject: [Bug-apl] )DUMP now creates valid HTML files
Date: Wed, 27 May 2015 15:15:35 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi,

I have changed GNU APL to accept (=ignore) HTML tags at the beginning of an .apl file.

I also changed the )DUMP command to create a few HTML tags at the beginning and at the end of an .apl file.

The net effect of these changes is that .apl files can now be published on the web or directly displayed as APL code
in browsers without  any changes. Once opened in the browser (say: firefox) you can also generate PDF or Postscript files
(using File→Print→Print-to-file in firefox).

For this to work, I had to (HTML-) comment out the first line of the .apl file. It used to be something like:

    #!/usr/local/bin/apl --script

but is now something like:

    <!-- #!/usr/local/bin/apl --script -->

So if you want to invoke an .apl file directly (i.e. without starting GNU APL and )LOADing the file) or as CGI script then you need
to remove the <!-- and -->  (and, as before, change the file permission to 'executable').

SVN 632

/// Jürgen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]