sequent windows.
text
;;
-
+let matita_lang =
+ let source_language_manager =
+ GSourceView2.source_language_manager ~default:true in
+ source_language_manager#set_search_path
+ (BuildTimeConf.runtime_base_dir ::
+ source_language_manager#search_path);
+ match source_language_manager#language "grafite" with
+ | None ->
+ HLog.error(sprintf "can't load a language file for \"grafite\" in %s"
+ BuildTimeConf.runtime_base_dir);
+ assert false
+ | Some x -> x
+;;
val utf8_string_length: string -> int
val escape_pango_markup: string -> string
+
+val matita_lang: GSourceView2.source_language
else raise exn);
(* script *)
let _ =
- let source_language_manager =
- GSourceView2.source_language_manager ~default:true in
- source_language_manager#set_search_path
- (BuildTimeConf.runtime_base_dir ::
- source_language_manager#search_path);
- match source_language_manager#language "grafite" with
- | None ->
- HLog.warn(sprintf "can't load a language file for \"grafite\" in %s"
- BuildTimeConf.runtime_base_dir)
- | Some x as matita_lang ->
- source_buffer#set_language matita_lang;
- source_buffer#set_highlight_syntax true
+ source_buffer#set_language (Some MatitaGtkMisc.matita_lang);
+ source_buffer#set_highlight_syntax true
in
let disableSave () =
(s())#assignFileName None;
method has_selection = (assert false : bool)
method strings_of_selection = (assert false : (paste_kind * string) list)
- method update_font_size = (assert false : unit)
+ method update_font_size =
+ self#misc#modify_font_by_name
+ (sprintf "%s %d" BuildTimeConf.script_font !current_font_size)
method set_href_callback = (function _ -> () : (string -> unit) option -> unit)
method private set_cic_info = (function _ -> () : (Cic.conjecture option * (Cic.id, Cic.term) Hashtbl.t *
(Cic.id, Cic.hypothesis) Hashtbl.t *
self#misc#modify_font_by_name
(sprintf "%s %d" BuildTimeConf.script_font font_size)
+ initializer
+ self#set_font_size !current_font_size;
+ self#source_buffer#set_language (Some MatitaGtkMisc.matita_lang);
+ self#source_buffer#set_highlight_syntax true
+
(* MATITA1.0
inherit GMathViewAux.multi_selection_math_view obj