\"\n.h.ha\n(anchor)¶\n.h.ha[x;y]\nWhere x\nis the href\nattribute as a symbol atom or a string, and y\nis the link text as a string, returns as a string an HTML A\nelement.\nq).h.ha[`http://www.example.com;\"Example.com Main Page\"]\n\"Example.com Main Page\"\nq).h.ha[\"http://www.example.com\";\"Example.com Main Page\"]\n\"Example.com Main Page\"\n.h.hb\n(anchor target)¶\n.h.hb[x;y]\nSame as .h.ha\n, but adds a target=v\nattribute to the tag.\nq).h.hb[\"http://www.example.com\";\"Example.com Main Page\"]\n\"Example.com Main Page\"\n.h.hc\n(escape lt)¶\n.h.hc x\nWhere x\nis a string, returns x\nwith any <\nchars escaped.\nq).h.hc \"\"\n\"\"\n.h.he\n(HTTP 400)¶\n.h.he x\nWhere x\nis a string, escapes \"<\"\ncharacters, adds a \"'\"\nat the front, and returns an HTTP 400 error (Bad Request) with that content.\nq).h.he \"\"\n\"HTTP/1.1 400 Bad Request\\r\\nContent-Type: text/plain\\r\\nConnection: close\\r\\..\n.h.hn\n(HTTP response)¶\n.h.hn[x;y;z]\nWhere\nx\nis the status code (string)y\nis the content type (symbol)z\nis the content (string)\nreturns as a string an HTTP error response.\nq).h.hn[\"404\";`txt;\"Not found: favicon.ico\"]\n\"HTTP/1.1 404\\r\\nContent-Type: text/plain\\r\\nConnection: close\\r\\nContent-Len..\n.h.ty\nMIME types\n.h.hp\n(HTTP response pre)¶\n.h.hp x\nWhere x\nis a list of strings, returns as a string a valid HTTP response displaying them as a pre\nelement in an HTML document.\nq)1 .h.hp\" \"sv'2#''string 5 10#50?100;\nHTTP/1.1 200 OK\nContent-Type: text/html\nConnection: close\nContent-Length: 257\n
89 97 11 99 33 77 98 30 22 15\n28 17 11 55 51 81 68 96 61 70\n70 39 76 26 91 83 76 88 44 56\n32 30 97 31 96 53 47 65 34 50\n96 99 13 72 81 70 33 99 56 12\n
\n.h.hr\n(horizontal rule)¶\n.h.hr x\nWhere x\nis a string, returns a string of the same length filled with \"-\"\n.\nq).h.hr \"foo\"\n\"---\"\n.h.ht\n(Marqdown to HTML)¶\n.h.ht x\nHTML documentation generator:\nwhere x\nis a symbol atom, reads file :src/x.txt\nand writes file :x.htm\n.\n(Marqdown is a rudimentary form of Markdown.)\n- edit\nsrc/mydoc.txt\nq).h.ht`mydoc\n- browse\nmydoc.htm\n(a/_mydoc.htm\nis navigation frame,a/mydoc.htm\nis content frame)\nBasic Marqdown formatting rules:\n- Paragraph text starts at the beginning of the line.\n- Lines beginning with\n\".\"\nare treated as section headings. - Lines beginning with\n\"\\t\"\nget wrapped incode\ntags - Line data beginning with\n\" \"\nget wrapped inxmp\ntags - If second line of data starts with\n\"-\"\n, draw a horizontal rule to format the header - Aligns two-column data if 2nd column starts with\n\"\\t \"\n.h.hta\n(start tag)¶\n.h.hta[x;y]\nWhere x\nis the element as a symbol atom, and y\nis a dictionary of attributes and values, returns as a string an opening HTML tag for element x\n.\nq).h.hta[`a;(`href`target)!(\"http://www.example.com\";\"_blank\")]\n\"\"\n.h.htac\n(element)¶\n.h.htac[x;y;z]\nWhere x\nis the element as a symbol atom, y\nis a dictionary of attributes and their values, and z\nis the content of the node as a string, returns as a string the HTML element.\nq).h.htac[`a;(`href`target)!(\"http://www.example.com\";\"_blank\");\"Example.com Main Page\"]\n\"Example.com Main Pagevalue\"\n.h.html\n(document)¶\n.h.html x\nWhere x\nis the body of an HTML document as a string, returns as a string an HTML document with fixed style rules.\n\n\n\n\n\nBODY\n\n\nq).h.html \"

Hello world!

\"\n\"