src/Pure/General/markup.scala
author wenzelm
Sat Dec 05 16:39:49 2009 +0100 (2009-12-05)
changeset 33985 1d33e85a3fa9
parent 33088 757d7787b10c
child 34046 8e743ca417b9
permissions -rw-r--r--
added markup for hidden text;
handle "\<^bold>" as markup;
HTML output: include original control symbols as hidden text, to enable copy-paste;
wenzelm@27958
     1
/*  Title:      Pure/General/markup.scala
wenzelm@27958
     2
    Author:     Makarius
wenzelm@27958
     3
wenzelm@27958
     4
Common markup elements.
wenzelm@27958
     5
*/
wenzelm@27958
     6
wenzelm@27958
     7
package isabelle
wenzelm@27958
     8
wenzelm@27970
     9
wenzelm@32450
    10
object Markup
wenzelm@32450
    11
{
wenzelm@29184
    12
  /* name */
wenzelm@29184
    13
wenzelm@29184
    14
  val NAME = "name"
wenzelm@29184
    15
  val KIND = "kind"
wenzelm@29184
    16
wenzelm@29184
    17
wenzelm@33088
    18
  /* formal entities */
wenzelm@33088
    19
wenzelm@33088
    20
  val ENTITY = "entity"
wenzelm@33088
    21
  val DEF = "def"
wenzelm@33088
    22
  val REF = "ref"
wenzelm@33088
    23
wenzelm@33088
    24
wenzelm@27970
    25
  /* position */
wenzelm@27970
    26
wenzelm@27970
    27
  val LINE = "line"
wenzelm@27970
    28
  val COLUMN = "column"
wenzelm@27970
    29
  val OFFSET = "offset"
wenzelm@27970
    30
  val END_LINE = "end_line"
wenzelm@27970
    31
  val END_COLUMN = "end_column"
wenzelm@27970
    32
  val END_OFFSET = "end_offset"
wenzelm@27970
    33
  val FILE = "file"
wenzelm@27970
    34
  val ID = "id"
wenzelm@27970
    35
wenzelm@32450
    36
  val POSITION_PROPERTIES =
wenzelm@32450
    37
    Set(LINE, COLUMN, OFFSET, END_LINE, END_COLUMN, END_OFFSET, FILE, ID)
wenzelm@29205
    38
wenzelm@29184
    39
  val POSITION = "position"
wenzelm@29184
    40
  val LOCATION = "location"
wenzelm@29184
    41
wenzelm@29184
    42
wenzelm@33985
    43
  /* hidden text */
wenzelm@33985
    44
wenzelm@33985
    45
  val HIDDEN = "hidden"
wenzelm@33985
    46
wenzelm@33985
    47
wenzelm@29184
    48
  /* logical entities */
wenzelm@29184
    49
wenzelm@29184
    50
  val TCLASS = "tclass"
wenzelm@29184
    51
  val TYCON = "tycon"
wenzelm@29184
    52
  val FIXED_DECL = "fixed_decl"
wenzelm@29184
    53
  val FIXED = "fixed"
wenzelm@29184
    54
  val CONST_DECL = "const_decl"
wenzelm@29184
    55
  val CONST = "const"
wenzelm@29184
    56
  val FACT_DECL = "fact_decl"
wenzelm@29184
    57
  val FACT = "fact"
wenzelm@29184
    58
  val DYNAMIC_FACT = "dynamic_fact"
wenzelm@29184
    59
  val LOCAL_FACT_DECL = "local_fact_decl"
wenzelm@29184
    60
  val LOCAL_FACT = "local_fact"
wenzelm@29184
    61
wenzelm@29184
    62
wenzelm@29184
    63
  /* inner syntax */
wenzelm@29184
    64
wenzelm@29184
    65
  val TFREE = "tfree"
wenzelm@29184
    66
  val TVAR = "tvar"
wenzelm@29184
    67
  val FREE = "free"
wenzelm@29184
    68
  val SKOLEM = "skolem"
wenzelm@29184
    69
  val BOUND = "bound"
wenzelm@29184
    70
  val VAR = "var"
wenzelm@29184
    71
  val NUM = "num"
wenzelm@29184
    72
  val FLOAT = "float"
wenzelm@29184
    73
  val XNUM = "xnum"
wenzelm@29184
    74
  val XSTR = "xstr"
wenzelm@29184
    75
  val LITERAL = "literal"
wenzelm@29184
    76
  val INNER_COMMENT = "inner_comment"
wenzelm@29184
    77
wenzelm@29184
    78
  val SORT = "sort"
wenzelm@29184
    79
  val TYP = "typ"
wenzelm@29184
    80
  val TERM = "term"
wenzelm@29184
    81
  val PROP = "prop"
wenzelm@29184
    82
wenzelm@29184
    83
  val ATTRIBUTE = "attribute"
wenzelm@29184
    84
  val METHOD = "method"
wenzelm@29184
    85
wenzelm@29184
    86
wenzelm@29184
    87
  /* embedded source text */
wenzelm@29184
    88
wenzelm@29184
    89
  val ML_SOURCE = "ML_source"
wenzelm@29184
    90
  val DOC_SOURCE = "doc_source"
wenzelm@29184
    91
wenzelm@29184
    92
  val ANTIQ = "antiq"
wenzelm@29184
    93
  val ML_ANTIQ = "ML_antiq"
wenzelm@29184
    94
  val DOC_ANTIQ = "doc_antiq"
wenzelm@29184
    95
wenzelm@29184
    96
wenzelm@30615
    97
  /* ML syntax */
wenzelm@30615
    98
wenzelm@30615
    99
  val ML_KEYWORD = "ML_keyword"
wenzelm@30615
   100
  val ML_IDENT = "ML_ident"
wenzelm@30615
   101
  val ML_TVAR = "ML_tvar"
wenzelm@30615
   102
  val ML_NUMERAL = "ML_numeral"
wenzelm@30615
   103
  val ML_CHAR = "ML_char"
wenzelm@30615
   104
  val ML_STRING = "ML_string"
wenzelm@30615
   105
  val ML_COMMENT = "ML_comment"
wenzelm@30615
   106
  val ML_MALFORMED = "ML_malformed"
wenzelm@30615
   107
wenzelm@30702
   108
  val ML_DEF = "ML_def"
wenzelm@31472
   109
  val ML_OPEN = "ML_open"
wenzelm@31472
   110
  val ML_STRUCT = "ML_struct"
wenzelm@30702
   111
  val ML_REF = "ML_ref"
wenzelm@30702
   112
  val ML_TYPING = "ML_typing"
wenzelm@30702
   113
wenzelm@30615
   114
wenzelm@29184
   115
  /* outer syntax */
wenzelm@29184
   116
wenzelm@29184
   117
  val KEYWORD_DECL = "keyword_decl"
wenzelm@29184
   118
  val COMMAND_DECL = "command_decl"
wenzelm@29184
   119
wenzelm@29184
   120
  val KEYWORD = "keyword"
wenzelm@29184
   121
  val COMMAND = "command"
wenzelm@29184
   122
  val IDENT = "ident"
wenzelm@29184
   123
  val STRING = "string"
wenzelm@29184
   124
  val ALTSTRING = "altstring"
wenzelm@29184
   125
  val VERBATIM = "verbatim"
wenzelm@29184
   126
  val COMMENT = "comment"
wenzelm@29184
   127
  val CONTROL = "control"
wenzelm@29184
   128
  val MALFORMED = "malformed"
wenzelm@29184
   129
wenzelm@29185
   130
  val COMMAND_SPAN = "command_span"
wenzelm@29185
   131
  val IGNORED_SPAN = "ignored_span"
wenzelm@29185
   132
  val MALFORMED_SPAN = "malformed_span"
wenzelm@29185
   133
wenzelm@29184
   134
wenzelm@29184
   135
  /* toplevel */
wenzelm@29184
   136
wenzelm@29184
   137
  val STATE = "state"
wenzelm@29184
   138
  val SUBGOAL = "subgoal"
wenzelm@29184
   139
  val SENDBACK = "sendback"
wenzelm@29184
   140
  val HILITE = "hilite"
wenzelm@29184
   141
wenzelm@29184
   142
wenzelm@29184
   143
  /* command status */
wenzelm@29184
   144
wenzelm@29417
   145
  val TASK = "task"
wenzelm@29417
   146
wenzelm@29184
   147
  val UNPROCESSED = "unprocessed"
wenzelm@29184
   148
  val RUNNING = "running"
wenzelm@29184
   149
  val FAILED = "failed"
wenzelm@29184
   150
  val FINISHED = "finished"
wenzelm@29184
   151
  val DISPOSED = "disposed"
wenzelm@29488
   152
wenzelm@29488
   153
wenzelm@29488
   154
  /* interactive documents */
wenzelm@29488
   155
wenzelm@29488
   156
  val EDITS = "edits"
wenzelm@29488
   157
  val EDIT = "edit"
wenzelm@29184
   158
wenzelm@27970
   159
wenzelm@27970
   160
  /* messages */
wenzelm@27970
   161
wenzelm@27970
   162
  val PID = "pid"
wenzelm@27970
   163
  val SESSION = "session"
wenzelm@27970
   164
wenzelm@29195
   165
  val MESSAGE = "message"
wenzelm@29522
   166
  val CLASS = "class"
wenzelm@29522
   167
wenzelm@29522
   168
  val INIT = "init"
wenzelm@29522
   169
  val STATUS = "status"
wenzelm@29522
   170
  val WRITELN = "writeln"
wenzelm@29522
   171
  val PRIORITY = "priority"
wenzelm@29522
   172
  val TRACING = "tracing"
wenzelm@29522
   173
  val WARNING = "warning"
wenzelm@29522
   174
  val ERROR = "error"
wenzelm@29522
   175
  val DEBUG = "debug"
wenzelm@29522
   176
  val SYSTEM = "system"
wenzelm@29522
   177
  val STDIN = "stdin"
wenzelm@29522
   178
  val STDOUT = "stdout"
wenzelm@29522
   179
  val SIGNAL = "signal"
wenzelm@29522
   180
  val EXIT = "exit"
wenzelm@29195
   181
wenzelm@31384
   182
  val READY = "ready"
wenzelm@31384
   183
wenzelm@27970
   184
wenzelm@27970
   185
  /* content */
wenzelm@27970
   186
wenzelm@27958
   187
  val ROOT = "root"
wenzelm@27958
   188
  val RAW = "raw"
wenzelm@27970
   189
  val BAD = "bad"
wenzelm@27958
   190
}