you are viewing a single comment's thread
view the rest of the comments
[–] [S] 6 points 2 days ago (2 children)

AFAIK there’s no way to specify color. How the markdown-it code interpreter selects colors is a mystery to me.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 days 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();
    }
    
  • source
  • parent