▲ 257 ▼ SHALL WE PLAY A GAME? (lemmy.ml) submitted 2 days ago by davel@lemmy.ml to c/memes@lemmy.ml 14 comments fedilink hide all child comments
[–] teagrrl@lemmy.ml 5 points 2 days ago (5 children) How do I do pink titles for my posts? It's so cute. permalink fedilink source hideshow 5 child comments replies: [–] davel@lemmy.ml [S] 9 points 2 days ago (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago (3 children) 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? permalink fedilink source parent hideshow 3 child comments replies: [–] davel@lemmy.ml [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. permalink fedilink source parent hideshow 2 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago I love a good mystery. permalink fedilink source parent [–] dessalines@lemmy.ml 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(); } permalink fedilink source parent
[–] davel@lemmy.ml [S] 9 points 2 days ago (4 children) 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. permalink fedilink source parent hideshow 4 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago (3 children) 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? permalink fedilink source parent hideshow 3 child comments replies: [–] davel@lemmy.ml [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. permalink fedilink source parent hideshow 2 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago I love a good mystery. permalink fedilink source parent [–] dessalines@lemmy.ml 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(); } permalink fedilink source parent
[–] teagrrl@lemmy.ml 5 points 2 days ago (3 children) 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? permalink fedilink source parent hideshow 3 child comments replies: [–] davel@lemmy.ml [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. permalink fedilink source parent hideshow 2 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago I love a good mystery. permalink fedilink source parent [–] dessalines@lemmy.ml 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(); } permalink fedilink source parent
[–] davel@lemmy.ml [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. permalink fedilink source parent hideshow 2 child comments replies: [–] teagrrl@lemmy.ml 5 points 2 days ago I love a good mystery. permalink fedilink source parent [–] dessalines@lemmy.ml 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(); } permalink fedilink source parent
[–] dessalines@lemmy.ml 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(); } permalink fedilink source parent