davel@lemmy.ml to Memes@lemmy.mlEnglish · 17 days agoSHALL WE PLAY A GAME?lemmy.mlimagemessage-square15linkfedilinkarrow-up1299arrow-down11
arrow-up1298arrow-down1imageSHALL WE PLAY A GAME?lemmy.mldavel@lemmy.ml to Memes@lemmy.mlEnglish · 17 days agomessage-square15linkfedilink
minus-squaredavel@lemmy.mlOPlinkfedilinkEnglisharrow-up7·17 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·16 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.
I love a good mystery.
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(); }