Differences between revisions 2 and 3
Revision 2 as of 2008-02-26 15:19:56
Size: 651
Editor: anonymous
Comment:
Revision 3 as of 2008-02-26 15:21:08
Size: 680
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
Page created by Phil Last

tag←{
     ⍺←'p'
     0∊⍴⍵:''
     (tg style)←{⎕ML←1
         ' '∊⍵:⍵{(⍵↑⍺)(⍵↓⍺)}¯1+⍵⍳' '
         ⍵''}⍺
     '<',tg,style,'>',(('<'=1⍴⍵)/nl),⍵,'</',tg,'>',nl
 }

     ∇ CreateHtml;htmlCode;body;head
[1]    body←'body'tag('h1'tag'"Hello World with APL in HTML'),('h2'tag'hello...'),tag'...wor
[2]    head←'head'tag('title'tag'Hello world with APL'),(''tag'')
[3]    htmlCode←'html'tag head,body
[4]    htmlCode{(⎕NUNTIE ⍵){}⍺ ⎕NAPPEND ⍵}'helloworld.html'⎕NCREATE 0

attachment:helloworldhtml.jpg

Page created by Phil Last

CategoryHelloWorld CategoryDyalog

HelloWorldHtml (last edited 2017-02-16 19:18:46 by KaiJaeger)