tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
375 stars 45 forks source link

Add the ability to change the background colour of code blocks #64

Closed amarakon closed 1 year ago

amarakon commented 1 year ago

I would like to be able to change the background colour of code blocks in Markdown and R Markdown. The colour should span across the entire window, not just the background of the text. Also, the lines for backticks should not be affected by this.

MDeiml commented 1 year ago

This can not be implemented in this repo, but depends on the specific editor you're using this parser with. E.g. for neovim you should ask for this feature in nvim-treesitter. What editor are you using? Maybe I can point you in the right direction.

amarakon commented 1 year ago

I am using Neovim, sorry I forgot to specify.

MDeiml commented 1 year ago

Ok thanks. Then you should suggest this feature in nvim-treesitter. It should be possible to implement this without changing the parser.