package ochre
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Syntax highlighter using TextMate grammars and themes
Install
dune-project
Dependency
Authors
Maintainers
Sources
ochre-1.1.0.tbz
sha256=a8e38fbcd22fbb68b0f7d93b36a2ba1670e8bd061b43a0177226738307183a32
sha512=7b344c3812be283b0101078564e564732f878ad226c7ce0212c9e9139fb41a291e4d31ad52c949f2978c48e04240d4d22b5b4ae63808e15a21c44a2fbeed8a22
doc/ochre/Ochre/Html_options/index.html
Module Ochre.Html_optionsSource
style_mode
How token colors are expressed in the output.
default_color
Whether the primary theme's colors are emitted inline.
t
Source
type t = {style_mode : style_mode;default_color : default_color;pre_class : string option;code_class : string option;line_numbers : bool;css_variable_prefix : string;scopes_as_data_attrs : bool;
}The full set of HTML rendering options.
default
make
Source
val make :
?style_mode:style_mode ->
?default_color:default_color ->
?pre_class:string ->
?code_class:string ->
?line_numbers:bool ->
?css_variable_prefix:string ->
?scopes_as_data_attrs:bool ->
unit ->
tConstruct options with defaults for any unspecified fields.
let opts =
Ochre.Html_options.make ~line_numbers:true
~default_color:No_default_color () sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page