• @bananaw@sh.itjust.works
      link
      fedilink
      1210 months ago

      I’ve been having trouble getting syntax highlighting to work on my ‘```’ fenced code blocks. I give it the right/supported language identifier, but nothing changes.

      I’m using neovim with a bunch of lsp plugins and treesitter. Anyone have dotfiles with markdown code syntax highlighting working?

      • @naught@sh.itjust.works
        link
        fedilink
        6
        edit-2
        10 months ago

        Are u using Mason and LSPconfig?

        edit: Oh, I don’t know that getting syntax highlighting in the blocks is something i’ve seen

      • @ocelot
        link
        2
        edit-2
        10 months ago

        Have you installed the treeesitter grammars for those languages with :TSInstall language_name or in your treesitter config?

        • @Slotos@feddit.nl
          link
          fedilink
          210 months ago

          This is pretty much all that’s needed. The language in the block is identified via a name that follows the opening triple backtick. E.g.:

          ```python some carefully indented code ```

    • Haus
      link
      fedilink
      310 months ago

      I’d go PostScript, since it’s Turing-complete.