davel@lemmy.ml to Memes@lemmy.mlEnglish · 2 days agoSHALL WE PLAY A GAME?lemmy.mlimagemessage-square14fedilinkarrow-up137
arrow-up137imageSHALL WE PLAY A GAME?lemmy.mldavel@lemmy.ml to Memes@lemmy.mlEnglish · 2 days agomessage-square14fedilink
minus-squaredavel@lemmy.mlOPlinkfedilinkEnglisharrow-up6·2 days agoAFAIK there’s no way to specify color. How the markdown-it code interpreter selects colors is a mystery to me.
minus-squareDessalines@lemmy.mllinkfedilinkarrow-up3·2 days agolemmy-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(); }
AFAIK there’s no way to specify color. How the markdown-it code interpreter selects colors is a mystery to me.
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(); }I love a good mystery.