diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-12-02 16:45:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 16:45:39 +0100 |
| commit | 07e6296520fc83b1fdb287b5173494cdd0e9136f (patch) | |
| tree | 9844003e550f161a5d563a726fc759fa1a84d22a /runtime/doc/develop.txt | |
| parent | 731432342058c1c4340fc3cc4782b5fcd4a756a0 (diff) | |
| parent | e40df8b1bc6a7832c7707696b374b19642dfd596 (diff) | |
| download | rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.gz rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.tar.bz2 rneovim-07e6296520fc83b1fdb287b5173494cdd0e9136f.zip | |
Merge pull request #21154 from clason/vimdoc-injections
feat(help): highlighted codeblocks
Diffstat (limited to 'runtime/doc/develop.txt')
| -rw-r--r-- | runtime/doc/develop.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt index 1ba6ae757b..9336321d73 100644 --- a/runtime/doc/develop.txt +++ b/runtime/doc/develop.txt @@ -119,7 +119,7 @@ reflects whether Python support is working. *provider-reload* Sometimes a GUI or other application may want to force a provider to "reload". To reload a provider, undefine its "loaded" flag, then use -|:runtime| to reload it: > +|:runtime| to reload it: >vim :unlet g:loaded_clipboard_provider :runtime autoload/provider/clipboard.vim @@ -185,6 +185,7 @@ Docstring format: - Limited markdown is supported. - List-items start with `-` (useful to nest or "indent") - Use `<pre>` for code samples. + Code samples can be annotated as `vim` or `lua` Example: the help for |nvim_open_win()| is generated from a docstring defined in src/nvim/api/win_config.c like this: > @@ -193,7 +194,7 @@ in src/nvim/api/win_config.c like this: > /// ... /// /// Example (Lua): window-relative float - /// <pre> + /// <pre>lua /// vim.api.nvim_open_win(0, false, /// {relative='win', row=3, col=3, width=12, height=3}) /// </pre> @@ -223,6 +224,7 @@ Docstring format: - Limited markdown is supported. - List-items start with `-` (useful to nest or "indent") - Use `<pre>` for code samples. + Code samples can be annotated as `vim` or `lua` Example: the help for |vim.paste()| is generated from a docstring decorating vim.paste in runtime/lua/vim/_editor.lua like this: > @@ -231,7 +233,7 @@ vim.paste in runtime/lua/vim/_editor.lua like this: > --- (such as the |TUI|) pastes text into the editor. --- --- Example: To remove ANSI color codes when pasting: - --- <pre> + --- <pre>lua --- vim.paste = (function() --- local overridden = vim.paste --- ... |