Skip to main content

format_script_for_log

Function format_script_for_log 

Source
pub fn format_script_for_log(code: &str, language: &str) -> String
Expand description

Format script code with a header and syntax highlighting

Returns a formatted, highlighted code block suitable for DEBUG logs