The Help Builder requires that the individual help files for each language are grouped together in one folder (2 characters, lower case).
For more information, see Preparations, How the Help Builder works.
It is recommended to create the necessary folder structure directly in the directory of the AL extension. This way the online help is also integrated into the source control process.
The help should be written in Visual Studio Code. It is also possible to write the help with another tool, but then no supporting functions are available.
For more information, see Preparations, Set up Visual Studio Code.
Each help topic is stored in a separate file with the file extension .nchb. The file is basically a normal text file.
It is important that the file is created as a UTF-8 file (with or without BOM) so that special characters are displayed correctly later. The default encoding of Visual Studio Code is UTF-8 without BOM. In the status bar in the lower right corner you will see the label UTF-8. if not, click it to open the action bar and select Save with Encoding. You can now select a new encoding for the file.
Structure of the help topic
Each help topic starts with a so-called Topic Header. The Topic Header is specified with the <h1> tag. If no <h1> tag is specified, an index-driven topic header is automatically added. Afterwards any text can be written. A line break will later be shown as such.
With the NCHB: Preview command of the Help Builder, the later result of the help topic can be displayed directly in Visual Studio Code:
Note
Preview displays a preview where the language-dependent texts are converted to English or to German depending on the folder.
Language-dependent texts are inserted or converted by the Help Builder at the time the help is displayed.
An example of a language-dependent text is the text for a topic link to which the text "For more information, see" or "Weitere Informationen dazu finden Sie unter" is automatically added depending on the language.
Formatting of the help topic
HTML tags are used to format the text. In addition, special tags are available, which are automatically converted by the Help Builder later when the topic is displayed.
For faster creation of the online help, the Help Builder provides Snippets for the most common requirements.
Important
The <h1> tag is specially handled by the Help Builder and should only be used for the Topic Header.
Each <h2> tag is automatically added to the "In this Topic" list.
<h3> tags are added to the "In this Topic" list if they are at the beginning of a new line. So if there is another tag in the line before the tag (e.g. <li><h3>) it will not be added. If a tag should not be added, the following can also be specified: <h3 class="dummy">.
Snippets
The following snippets are available:
Snippet
Code/Result
_NewTopic
Creates an example which can be used as a starting point.