Skip to main content

create_code_highlight_node

Function create_code_highlight_node 

Source
pub fn create_code_highlight_node(
    text: &str,
    highlight_type: Option<&str>,
) -> NodeRef
Expand description

$createCodeHighlightNode(text, highlightType): the highlight type as given, an empty one included (only setHighlightType drops it).