Which code is required for a newline in a description or comment?

It is possible to enter a description or comment for a →variable.

  • If the variable is declared in the ST-editor, please refer to "Defining description, comment, JSON string or type for variables or data types" for the required syntax for description and comment of a variable. This article also contains the required code for a newline.

  • If the variable is declared in a →graphical editor, enter the description and/or comment in the respective field of the graphical editor. Depending on the editor, the newline is inserted either by Shift+Enter or the Enter-key. See the respective description for the editor.If you want to enter the description or comment within a →textual editor, observe that a different code is needed for a newline – depending on the editor:

    Editor

    Required code

    Enum editor

    $R$N

    Global-variables-editor,
    FBD-editor,
    LD-editor 

    $N

    If you are unsure what code is needed, the best practice is to enter the description or comment including the new line in a graphical editor for a temporary object. Save the code/logic. Open the textual editor for the temporary object and transfer the code from the temporary object to the respective target object.