you are viewing a single comment's thread
view the rest of the comments
[–] 67 points 3 years ago (5 children)
  • [–] 12 points 3 years ago (3 children)

    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?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 years ago* (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 years 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 ```

  • source
  • parent