Reference Attachment Code Block Placeholder Macro

Renders code of attached file, referenced by local property, with placeholders replaced by properties.

Tags
ID
projectdoc-ref-attachment-code-block-placeholder-macro
Suite
Since
3.1

Parameters

Property

The property with a reference to a locally attached file.

The Attachment Link Macro may be used to reference the attached file as a property value.

Document

The document to fetch property values for the placeholders. If not specified, the current document is used.

Apply Space Properties

If checked the properties defined by the space of the document this macro is part of are applied as defaults.

Snippet ID

The identifier of the snippet to include.

With the line after the line containing the identifier the snippet starts. The line marking the end of the snippet again includes this identifier (and this line is also not part of the snippet).

Lines

The line or line ranges to match. There may be multiple line ranges, separated by comma.

Here are some examples:

Specified
Description
-12
Transclude all lines up to and including line 12.
23
Transclude line 23 only.
42-50
Transclude lines 42 to 50, both edge values included.
90-
Transclude from line 90 to the end of the file.
-12, 23, 42-50, 90-
All of the above in combination.

Please note that this information is not used, if a snippet ID is provided.

Encoding

The encoding of the file. Defaults to the character type announced by the response.

Use extra Snippet Marker

Check if the extra labels "SNIPPET START" and "SNIPPET END" should assumed. This may help to make you snippet ID marker unique without having to add this identifier parts with the snippet ID explicitly.

Code Syntax highlighting

This value is passed to the Code Block Macro.

The value "Default Language" refers to the value provided by the space property "Code Language".

Code Title

This value is passed to the Code Block Macro.

Code Theme

This value is passed to the Code Block Macro.

Code Show line numbers

This value is passed to the Code Block Macro.

Code First line number

This value is passed to the Code Block Macro.

Code Collapsible

This value is passed to the Code Block Macro.

Related Macros

Attachment Code Block Placeholder Macro
Renders a code block from an attached file with placeholders replaced by properties.
Attachment Link Macro
Renders a link to an attached file for download.