davel@lemmy.ml to Memes@lemmy.mlEnglish · 1 day agoSHALL WE PLAY A GAME?lemmy.mlimagemessage-square13linkfedilinkarrow-up1264arrow-down10
arrow-up1264arrow-down1imageSHALL WE PLAY A GAME?lemmy.mldavel@lemmy.ml to Memes@lemmy.mlEnglish · 1 day agomessage-square13linkfedilink
minus-squareteagrrl@lemmy.mllinkfedilinkarrow-up6·19 hours agoHow do I do pink titles for my posts? It’s so cute.
minus-squaredavel@lemmy.mlOPlinkfedilinkEnglisharrow-up8·16 hours agoYou can use Markdown in the title as well as the body of a post. In this case I used backticks to render the title as inline code.
minus-squareteagrrl@lemmy.mllinkfedilinkarrow-up5·14 hours 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@lemmy.mlOPlinkfedilinkEnglisharrow-up6·14 hours 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-up2·9 hours 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(); }
How do I do pink titles for my posts? It’s so cute.
You can use Markdown in the title as well as the body of a post. In this case I used backticks to render the title as inline code.
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.