Skip to content

Comments

LieberLieber Embedded uses a default comment style for any comments in the generated code.

This comment style can be customized by using Model Settings. The model settings have [comment] as placeholders which will then be used by the code generator to determine where the comments will be placed. The comment template should contain this placeholder at least once.

Single-Line Comments

Customizes single line comments in generated code.

Default: /* [comment] */.

This can be customized in any way the user desires.

See Single-Line Comments Template model setting.

If there is no valid single-line comment template present the code generator will use the default value.

Example-1

/* [comment] */

/* single line comment */

Example-2

// [comment]

// single line comment

Multi-Line Comments

Customizes multi line comments in generated code.

Default:

/*
 * [comment]
 */

This can be customized in any way the user desires.

See Mult-Line Comments Template model setting.

Example-1

/*
 * [comment]
 */
/*
 * Line 1
 * Line 2
 * Line 3
 */

Example-2

/* [comment]
 * [comment]
 */
/* Line 1
 * Line 2
 * Line 3
 */

Example-3

/* [comment]
 *
[comment] */
/* Line 1
 *Line 2
Line 3 */

Example-4

/* [comment]
[comment] */
/* Line 1
Line 2
Line 3 */