X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9eba84a2efd76cf209391cf47c2ebaab5a369efc..04e060dc062ee981f5c9bcc8f3b700f803da285f:/README.md?ds=sidebyside diff --git a/README.md b/README.md index 014c54e..c265d5b 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,23 @@ To disable conceal regardless of `conceallevel` setting, add the following to yo let g:vim_markdown_conceal = 0 ``` +### Fenced code block languages + +You can use filetype name as fenced code block languages for syntax highlighting. +If you want to use different name from filetype, you can add it in your '.vimrc' like so: + +```vim +let g:vim_markdown_fenced_languages = ['csharp=cs'] +``` + +This will cause the following to be highlighted using the `cs` filetype syntax. + + ```csharp + ... + ``` + +Default is `['c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini']`. + ### Syntax extensions The following options control which syntax extensions will be turned on. They are off by default.