···11type t
2233-val init : id:int -> Client.t -> Webcomponent.t -> t
33+val init : id:int -> ?extra_style:Jstr.t -> Client.t -> Webcomponent.t -> t
44val id : t -> int
55val set_source : t -> string -> unit
66val add_message : t -> int -> X_protocol.output list -> unit
+3-1
src/x_ocaml.ml
···3232 | None -> Jstr.of_string "x-ocaml"
3333 | Some name -> name
34343535+let extra_style = current_attribute "src-style"
3636+3537let _ =
3638 Webcomponent.define elt_name @@ fun this ->
3739 let prev = match !all with [] -> None | e :: _ -> Some e in
3840 let id = List.length !all in
3939- let editor = Cell.init ~id worker this in
4141+ let editor = Cell.init ~id ?extra_style worker this in
4042 all := editor :: !all;
4143 Cell.set_prev ~prev editor;
4244 ()