• davel@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      16 hours ago

      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.

      • teagrrl@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        14 hours ago

        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?

          • Dessalines@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            9 hours 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();
            }