Skip to main content

CONSOLE_HTML_FORMAT

Constant CONSOLE_HTML_FORMAT 

Source
pub const CONSOLE_HTML_FORMAT: &str = r#"<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
{stylesheet}
body {
    color: {foreground};
    background-color: {background};
}
</style>
</head>
<body>
    <pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code style="font-family:inherit">{code}</code></pre>
</body>
</html>
"#;
Expand description

HTML format template for console export.

This template uses the following placeholder variables:

  • {stylesheet} - Additional CSS styles
  • {foreground} - Foreground color (CSS color value)
  • {background} - Background color (CSS color value)
  • {code} - HTML-encoded console content