• Dessalines@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    11 hours ago

    lemmy-ui has code themes that try to smartly guess which language anything in backticks is in, so it can do syntax highlighting for that language.

    IE

    rust

    fn main() {
      let x = XFunction::read();
    }
    

    typescript

    function main() {
      const x = xFunctionRead();
    }