@@ -13,10 +13,10 @@ The it is determined whether the reminder text should be shown.
...
@@ -13,10 +13,10 @@ The it is determined whether the reminder text should be shown.
This is either because the user explicitly selected it, or when @default_expand(mode: keyword.mode)@ returns true.
This is either because the user explicitly selected it, or when @default_expand(mode: keyword.mode)@ returns true.
Whether reminder text is shown is stored in a @<kw->@ tag around the keyword.
Whether reminder text is shown is stored in a @<kw->@ tag around the keyword.
! Tag Reminder text Changed by user
! Tag Reminder text Changed by user
| @"<kw-a>"@ hidden no
| @<kw-a>@ hidden no
| @"<kw-A>"@ shown no
| @<kw-A>@ shown no
| @"<kw-0>"@ hidden yes
| @<kw-0>@ hidden yes
| @"<kw-1>"@ shown yes
| @<kw-1>@ shown yes
If the reminder text is shown the function @combine@ is called which should combine the reminder text with (in the variable @reminder@) with the keyword and its parameters (in the variable @keyword@).
If the reminder text is shown the function @combine@ is called which should combine the reminder text with (in the variable @reminder@) with the keyword and its parameters (in the variable @keyword@).
...
@@ -40,7 +40,7 @@ is used. This shows reminder text by default based on a [[type:set]] option, and
...
@@ -40,7 +40,7 @@ is used. This shows reminder text by default based on a [[type:set]] option, and
The @condition@, @default_expand@ and @combine@ functions will be called for each potential keyword match in the input.
The @condition@, @default_expand@ and @combine@ functions will be called for each potential keyword match in the input.
! Parameter Type Description
! Parameter Type Description
| @param1@, @param2@, ... [[type:tagged string]]* The parameter values.
| @param1@, @param2@, ... [[type:tagged string]]s The parameter values.
| @mode@ [[type:string]] The @mode@ of the keyword.
| @mode@ [[type:string]] The @mode@ of the keyword.
| @used_placeholders@ [[type:boolean]] DOC_MSE_VERSION: since 0.3.7
| @used_placeholders@ [[type:boolean]] DOC_MSE_VERSION: since 0.3.7
@@ -103,7 +103,7 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
...
@@ -103,7 +103,7 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
| ^^^ @line height hard max@ ^^^ ^^^ ^^^
| ^^^ @line height hard max@ ^^^ ^^^ ^^^
| ^^^ @line height line max@ ^^^ ^^^ ^^^
| ^^^ @line height line max@ ^^^ ^^^ ^^^
| ^^^ @paragraph height@ [[type:double]] ''flexible'' The height of paragraphs. If specified, each paragraph is given this much space, and aligned inside that space as specified by @alignment@.<br/>
| ^^^ @paragraph height@ [[type:double]] ''flexible'' The height of paragraphs. If specified, each paragraph is given this much space, and aligned inside that space as specified by @alignment@.<br/>
A paragraph break is any line break that is not soft (i.e. caused by word wrap or a @"<soft>"@ break).
A paragraph break is any line break that is not soft (i.e. caused by word wrap or a @<soft>@ break).
| ^^^ @mask@ [[type:image|scriptable image]] ''none'' A mask that indicates where in the box text can be placed.<br/>
| ^^^ @mask@ [[type:image|scriptable image]] ''none'' A mask that indicates where in the box text can be placed.<br/>
@@ -12,40 +12,44 @@ This is written as the character with code 1 in files.
...
@@ -12,40 +12,44 @@ This is written as the character with code 1 in files.
--Basic markup--
--Basic markup--
! Tag Description
! Tag Description
| @"<b>"@ The text inside the tag is bold.
| @<b>@ The text inside the tag is bold.
| @"<i>"@ The text inside the tag is italic.
| @<i>@ The text inside the tag is italic.
| @"<sym>"@ The text inside the tag is rendered as symbols, if a [[prop:style:symbol font]] is set for the text box.
| @<sym>@ The text inside the tag is rendered as symbols, if a [[prop:style:symbol font]] is set for the text box.
| @"<color:???>"@ The text inside the tag is rendered with the given [[type:color]].
| @<color:???>@ The text inside the tag is rendered with the given [[type:color]].
| @"<size:???>"@ The text inside the tag is rendered with the given font size in points, for example @"<size:12>text</size>"@ makes the text 12 points. The text is scaled down proportionally when it does not fit in a text box and the @scale down to@ attribute allows it.
| @<size:???>@ The text inside the tag is rendered with the given font size in points, for example @"<size:12>text</size>"@ makes the text 12 points. The text is scaled down proportionally when it does not fit in a text box and the @scale down to@ attribute allows it.
| @"<line>"@ Line breaks inside this tag use the [[prop:style:line height line]], and they show a horizontal line.
| @<line>@ Line breaks inside this tag use the [[prop:style:line height line]], and they show a horizontal line.
| @"<soft-line>"@ Line breaks inside this tag use the [[prop:style:soft line height]].
| @<soft-line>@ Line breaks inside this tag use the [[prop:style:soft line height]].
| @"<atom>"@ An atomic piece of text. The cursor can never be inside it; it is selected as a whole.
| @<atom>@ An atomic piece of text. The cursor can never be inside it; it is selected as a whole.
The program automatically inserts @"<atom-soft>"@.
The program automatically inserts @<atom-soft>@.
| @"<code>"@ The text inside the text is rendered in a monospace font. This is used for syntax highlighting script code.
| @<code>@ The text inside the tag is rendered in a monospace font. This is used for syntax highlighting script code.
| @"<code-kw>"@ The text inside the text is highlighted as a keyword in source code.
| @<code-kw>@ The text inside the tag is highlighted as a keyword in source code.
| @"<code-str>"@ The text inside the text is highlighted as a string in source code.
| @<code-str>@ The text inside the tag is highlighted as a string in source code.
--Other tags--
--Other tags--
! Tag Description
! Tag Description
| @"<kw-?>"@ Indicates that the text inside it is a keyword. This tag is automatically inserted by
| @<kw-?>@ Indicates that the text inside it is a keyword. This tag is automatically inserted by
The [[fun:expand_keywords]] function.<br/>
The [[fun:expand_keywords]] function.<br/>
There are four versions, indicating whether or not reminder text is shown:
There are four versions, indicating whether or not reminder text is shown:
* @"<kw-0>"@, Reminder text hidden, by default
* @<kw-0>@, Reminder text hidden, by default
* @"<kw-1>"@, Reminder text shown, by default
* @<kw-1>@, Reminder text shown, by default
* @"<kw-a>"@, Reminder hidden manually
* @<kw-a>@, Reminder hidden manually
* @"<kw-A>"@, Reminder shown manually
* @<kw-A>@, Reminder shown manually
| @"<sep>"@ A separator between fields. This tag is automatically inserted by the [[fun:combined_editor]] function.<br/>
| @<sep>@ A separator between fields. This tag is automatically inserted by the [[fun:combined_editor]] function.<br/>
Inserting this tag manually will confuse that function!<br/>
Inserting this tag manually will confuse that function!<br/>
This tag can never be selected, and its contents can not be edited.
This tag can never be selected, and its contents can not be edited.
| @"<prefix>"@ At the beginning of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
| @<prefix>@ At the beginning of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
| @"<suffix>"@ At the end of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
| @<suffix>@ At the end of a string, indicates a part that can not be selected. This tag is automatically inserted by the [[fun:combined_editor]] function.
| @"<sep-soft>"@ Like @"<sep>"@, only hidden. This is inserted by [[fun:combined_editor]]
| @<sep-soft>@ Like @<sep>@, only hidden. This is inserted by [[fun:combined_editor]]
| @"<soft>"@ Text who's width is ignored for alignment, similar to @"<sep-soft>"@, but not a separator.
| @<soft>@ Text who's width is ignored for alignment, similar to @<sep-soft>@, but not a separator.
| @"<word-list-?>"@ Indicate that the text inside the tag should be selected from a [[type:word list]].
| @<word-list-???>@ Indicate that the text inside the tag should be selected from a [[type:word list]].
The <tt>?</tt> must be the name of a word list in the game.
The <tt>???</tt> must be the name of a word list in the game.
| @<error>@ The text inside the tag is an error, and is shown with a red wavy underline.
| @<error-spelling:???>@ A spelling error, marked by the [[fun::check_spelling]] function.
The <tt>???</tt> part indicates the language used for spelling checking.
| any other tag Other tags are ignored.
| any other tag Other tags are ignored.
--Related functions--
--Related functions--
The following script functions deal with tags:
The following script functions deal with tags:
| [[fun:tag_contents]] Change the contents of a specific tag.
| [[fun:tag_contents]] Change the contents of a specific tag.