#Issue with code syntax highlighting

4 messages · Page 1 of 1 (latest)

honest mango
#

Is it only me or there is some issue with code syntax highlighting in PDF output in regards to variables and also things like parentheses?

For example when I use rust code usig raw block:

fn main() {
    // Variables can be type annotated.
    let logical: bool = true;

    let mut inferred_type = 12;

    let my_array: [i32; 5] = [1, 2, 3, 4, 5];
}

Typst ignores colors for: logical,inferred_type and my_array. Those names stay black regardles theme that is used.
Same behaviour can be observed for other languages aswell.
Can someone confirm that?

shadow leaf
#

Try #show raw: set text(fill: green)

honest mango