]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/mothra/html.syntax.c
mothra: fix alt display resizing, filter control characters in panel entries, use...
[plan9front.git] / sys / src / cmd / mothra / html.syntax.c
1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
4 #include <event.h>
5 #include <panel.h>
6 #include "mothra.h"
7 #include "html.h"
8 Tag tag[]={
9 [Tag_comment]   "!--",          NOEND,
10 [Tag_a]         "a",            END,
11 [Tag_address]   "address",      END,
12 [Tag_b]         "b",            END,
13 [Tag_base]      "base",         NOEND,
14 [Tag_blockquot] "blockquote",   END,
15 [Tag_body]      "body",         END,    /* OPTEND */
16 [Tag_br]        "br",           NOEND,
17 [Tag_button]    "button",       END,
18 [Tag_center]    "center",       END,
19 [Tag_cite]      "cite",         END,
20 [Tag_code]      "code",         END,
21 [Tag_dd]        "dd",           NOEND,  /* OPTEND */
22 [Tag_dfn]       "dfn",          END,
23 [Tag_dir]       "dir",          END,
24 [Tag_dl]        "dl",           END,
25 [Tag_dt]        "dt",           NOEND,  /* OPTEND */
26 [Tag_em]        "em",           END,
27 [Tag_font]      "font",         END,
28 [Tag_form]      "form",         END,
29 [Tag_h1]        "h1",           END,
30 [Tag_h2]        "h2",           END,
31 [Tag_h3]        "h3",           END,
32 [Tag_h4]        "h4",           END,
33 [Tag_h5]        "h5",           END,
34 [Tag_h6]        "h6",           END,
35 [Tag_head]      "head",         END,    /* OPTEND */
36 [Tag_hr]        "hr",           NOEND,
37 [Tag_html]      "html",         END,    /* OPTEND */
38 [Tag_i]         "i",            END,
39 [Tag_input]     "input",        NOEND,
40 [Tag_img]       "img",          NOEND,
41 [Tag_isindex]   "isindex",      NOEND,
42 [Tag_kbd]       "kbd",          END,
43 [Tag_key]       "key",          END,
44 [Tag_li]        "li",           NOEND,  /* OPTEND */
45 [Tag_link]      "link",         NOEND,
46 [Tag_listing]   "listing",      END,
47 [Tag_menu]      "menu",         END,
48 [Tag_meta]      "meta",         NOEND,
49 [Tag_nextid]    "nextid",       NOEND,
50 [Tag_ol]        "ol",           END,
51 [Tag_option]    "option",       NOEND,  /* OPTEND */
52 [Tag_p]         "p",            NOEND,  /* OPTEND */
53 [Tag_plaintext] "plaintext",    NOEND,
54 [Tag_pre]       "pre",          END,
55 [Tag_samp]      "samp",         END,
56 [Tag_script]    "script",       END,
57 [Tag_style]     "style",        END,
58 [Tag_select]    "select",       END,
59 [Tag_strong]    "strong",       END,
60 [Tag_table]             "table",        END,
61 [Tag_td]                "td",           END,
62 [Tag_textarea]  "textarea",     END,
63 [Tag_title]     "title",        END,
64 [Tag_tr]        "tr",           END,
65 [Tag_tt]        "tt",           END,
66 [Tag_u]         "u",            END,
67 [Tag_ul]        "ul",           END,
68 [Tag_var]       "var",          END,
69 [Tag_xmp]       "xmp",          END,
70 [Tag_frame]     "frame",        NOEND,
71 [Tag_end]       0,              ERR,
72 };