An excellent idea, but instead of modifying the existing behavior of )DUMP, maybe you could have created an )HDUMP or )HTMLDUMP command, so as not to change existing workflows?
Just a thought… > On 2015-05-27, at 09:15, Juergen Sauermann <[email protected]> > wrote: > > 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 > > > --- Louis Chrétien [email protected]
