davel [he/him]@lemmy.ml to Memes@lemmy.mlEnglish · 5 days agoSHALL WE PLAY A GAME?lemmy.mlimagemessage-square13linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageSHALL WE PLAY A GAME?lemmy.mldavel [he/him]@lemmy.ml to Memes@lemmy.mlEnglish · 5 days agomessage-square13linkfedilink
minus-squareteagrrl@lemmy.mllinkfedilinkarrow-up0·5 days agoWell that’s neat. There’s no reliable way to make it a certain color then? Is it based on the theme I am using and how the CSS style is for inline code?
minus-squaredavel [he/him]@lemmy.mlOPlinkfedilinkEnglisharrow-up0·5 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-up0·5 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(); }
Well that’s neat. There’s no reliable way to make it a certain color then? Is it based on the theme I am using and how the CSS style is for inline code?
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.