Skip to main content

cc_render_html

Function cc_render_html 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cc_render_html( code: *const c_char, len: usize, language: i32, theme: i32, flags: u32, ) -> *mut c_char
Expand description

Renders HTML. A valid theme index gives inline styles, -1 gives class names. Takes CC_HTML_* flags. Returns NULL for invalid UTF-8 or NUL bytes in the input. Free with cc_string_free.

ยงSafety

code must be null or point to len readable bytes.