| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
let make_tag (tt:GText.tag_table) ~name prop = |
| 13 |
let new_tag = GText.tag ~name () in |
| 14 |
new_tag#set_properties prop; |
| 15 |
tt#add new_tag#as_tag; |
| 16 |
new_tag |
| 17 |
|
| 18 |
module Script = |
| 19 |
struct |
| 20 |
|
| 21 |
let table = GText.tag_table () |
| 22 |
let warning = make_tag table ~name:"warning" [`UNDERLINE `SINGLE; `FOREGROUND "blue"] |
| 23 |
let error = make_tag table ~name:"error" [`UNDERLINE `SINGLE] |
| 24 |
let error_bg = make_tag table ~name:"error_bg" [] |
| 25 |
let to_process = make_tag table ~name:"to_process" [`EDITABLE false] |
| 26 |
let processed = make_tag table ~name:"processed" [] |
| 27 |
let debugging = make_tag table ~name:"debugging" [] |
| 28 |
let incomplete = make_tag table ~name:"incomplete" [`EDITABLE false] |
| 29 |
let unjustified = make_tag table ~name:"unjustified" [] |
| 30 |
let tooltip = make_tag table ~name:"tooltip" [] |
| 31 |
let ephemere = |
| 32 |
[warning; error; error_bg; to_process; processed; debugging; |
| 33 |
incomplete; unjustified; tooltip] |
| 34 |
let comment = make_tag table ~name:"comment" [] |
| 35 |
let sentence = make_tag table ~name:"sentence" [] |
| 36 |
let breakpoint = make_tag table ~name:"breakpoint" [] |
| 37 |
let edit_zone = make_tag table ~name:"edit_zone" [`UNDERLINE `SINGLE] |
| 38 |
let all_but_bpt = comment :: sentence :: edit_zone :: ephemere |
| 39 |
end |
| 40 |
module Proof = |
| 41 |
struct |
| 42 |
let table = GText.tag_table () |
| 43 |
let highlight = make_tag table ~name:"highlight" [] |
| 44 |
let hypothesis = make_tag table ~name:"hypothesis" [] |
| 45 |
let goal = make_tag table ~name:"goal" [] |
| 46 |
end |
| 47 |
module Message = |
| 48 |
struct |
| 49 |
let table = GText.tag_table () |
| 50 |
let error = make_tag table ~name:"error" [`FOREGROUND "red"] |
| 51 |
let warning = make_tag table ~name:"warning" [`FOREGROUND "orange"] |
| 52 |
let item = make_tag table ~name:"item" [`WEIGHT `BOLD] |
| 53 |
end |