diff --git a/doc/helphelp.jax b/doc/helphelp.jax index 073b6d6fa..17ebbe19b 100644 --- a/doc/helphelp.jax +++ b/doc/helphelp.jax @@ -1,4 +1,4 @@ -*helphelp.txt* For Vim バージョン 9.1. Last change: 2024 Nov 19 +*helphelp.txt* For Vim バージョン 9.1. Last change: 2024 Dec 15 VIMリファレンスマニュアル by Bram Moolenaar @@ -430,7 +430,13 @@ Ex コマンドのブロックを例示するときは、大なり記号 (>) を echo "Example" endfunction < - +コード例に Vim 構文ハイライトサポートを追加することができます。これは、大なり +記号 (>) の後に "vim" を追加することで可能です (">vim")。 +例: >vim + function Example_Func() + echo "Example" + endfunction +< Vim ヘルプファイルでは以下のものがそれぞれハイライトされます: - 特殊キーの名前。 のような <> 表記で書かれたものと、CTRL-X のよう に書かれた制御文字。 diff --git a/en/helphelp.txt b/en/helphelp.txt index 3da38ecc5..948ef7248 100644 --- a/en/helphelp.txt +++ b/en/helphelp.txt @@ -1,4 +1,4 @@ -*helphelp.txt* For Vim version 9.1. Last change: 2024 Nov 19 +*helphelp.txt* For Vim version 9.1. Last change: 2024 Dec 15 VIM REFERENCE MANUAL by Bram Moolenaar @@ -437,7 +437,13 @@ also implicitly stops the block of ex-commands before it. E.g. > echo "Example" endfunction < - +It's possible to add Vim syntax highlighting support to code examples. This +can be done by adding "vim" after the greater than (>) character (">vim"). +E.g: >vim + function Example_Func() + echo "Example" + endfunction +< The following are highlighted differently in a Vim help file: - a special key name expressed either in <> notation as in , or as a Ctrl character as in CTRL-X