Page tree
Skip to end of metadata
Go to start of metadata

Formating Text

With openforms you can influence the outward appearance of your continuous text.
  • If you want to change the appearance of one word, write the formating command in front of the word you want to change. Separate the command and the word by a colon.
  • If you want to change the appearance of a larger section of the text, put the section in square brackets.
  • The following table displays possible formats
FormateCommandExample (input)Example (output)
Boldf:This text is written in f:boldThis text is wrriten in bold
Cursivek:This text is written in k:cursiveThis text is written in cursive
Superscriptsup:This text is written in sup:superscriptThis text is written in superscript
Subscriptsub:This text is written in sub: subscriptThis text is written in subscript
Crossed outdel:This text is del:crossed outThis text is crossed out
Formated 
pre:
pre:
                             __                                _____ 
                            / _|                              |  ___|
  ___   _ __    ___  _ __  | |_   ___   _ __  _ __ ___   ___  |___ \ 
 / _ \ | '_ \  / _ \| '_ \ |  _| / _ \ | '__|| '_ ` _ \ / __|     \ \
| (_) || |_) ||  __/| | | || |  | (_) || |   | | | | | |\__ \ /\__/ /
 \___/ | .__/  \___||_| |_||_|   \___/ |_|   |_| |_| |_||___/ \____/ 
       | |                                                           
       |_|
                             __                                _____ 
                            / _|                              |  ___|
  ___   _ __    ___  _ __  | |_   ___   _ __  _ __ ___   ___  |___ \ 
 / _ \ | '_ \  / _ \| '_ \ |  _| / _ \ | '__|| '_ ` _ \ / __|     \ \
| (_) || |_) ||  __/| | | || |  | (_) || |   | | | | | |\__ \ /\__/ /
 \___/ | .__/  \___||_| |_||_|   \___/ |_|   |_| |_| |_||___/ \____/ 
       | |                                                           
       |_|
Format several words[command:…][f:This section is written in bold]This section is written in bold
No line brake nobr:[nobr:This text will always displayed in one line and not break at spaces]

Structuring Texts

You can structure and organize continuous texts.
  • When structuring a continuous text it is important to leave an empty row both before and after the structured textblock.
  • The order initiating structuring is always entered followed by a space.
  • The following table shows some possible structures.
FormatCommandExample (input)Example (output)
BulletsThis is a continuous text

* one
* two

and another continuous text.
This is a continuous text
  • one
  • two
and another continuous text.
ListsThis is a continuous text

# one
# two

and another continuous text.
This is a continuous text
  1. one
  2. two
and another continuous text.
Forced Empty Rowbr:This is a continuous text<return>
br:
br:
and another continuous text.
This is a continuous text
 
 
and another continuous text.
SubheadingsThis is a continuous text, followed by a

! subheading

and another continuous text.
This is a continuous text, followed by a

subheading
and another continuous text.
Citationsz:This is a continuous text
[z:and this is a citation]
This is a continuous text
and this is a citation
Source Textscode:This is a continuous text
[code:and this is a source excerpt]
This is a continuous text
and this is a source excerpt
Next paragraph after an image.clear:This is a continuous text
clear:
and another continuous text

This is a continuous text
and another continuous text.

Horizontal Linehr:This is a continuous text
hr:
and another continuous text
This is a continuous text

and another continuous text
Please note that you can also structure a text by creating a new standard paragraph for each section.

Semantic Labeling

By using semantic labeling you can capture more information than is visible in the text. This applies especially to footnotes, comments and citations.
  • When entering it, put two # sympols behind the characteristic word, the explain it.
  • The entire term is set into square brackets.
  • The following table displays possible semantic labels.
  • In order to test the function, please move your cursor above the labelled word.
FormatCommandExample (input)Example (output)
Abbreviationabbr: Please move your cursor above the following [abbr:abbreviation##Explenation of abbreviation].Please move your cursor above the following abbreviation.
Definitiondfn: Please move your cursor above the following[abbr:definition##Explenation of definition].Please move your cursor above the following definition.
Acronymacronym: Please move your cursor above the following [abbr:Akronym##Explenation of acronyms].Please move your cursor above the following acronym.

(info) With x-html_tag you may generate arbitrary inline HTML-Tags. e.g to support  project specific HTML5 Tags.

Tables and Overviews

You can display a set of facts or figures systematically in tables. The data to be displayed is set in columns and rows

  • Tables start with the tab: command, followed by a line break.
  • All following lines each represent a row with columns. Columns are separated using a separator mark, with a space before and after the separator mark.
  • To clearly separate a table-block from the rest of the text of you place a blank line before and after the table-block.
  • In case the table should contain a heading at the top, enter tab:spaltig. Should the left table culumn be a heading, enter tab:zeilig. (Unfortunately the commands splatig and zeilig are not localized.)

FormattingCommandExample InputExample Output
Indexdef:
:=
def:
FRG := German
UK := English

FRG German

UK English

Tabletab:
|
tab:
 | Colour | Flavor
Apples | red | sourish
Peas | yellow | sweet

ColourFlavor
Applesredsourish
Peasyellowsweet
Cell Blockingnbsp:tab:
nbsp: | pieces
Apples | 10 br: (20)
Peas | 3 br: (6)

Pieces
Apples10
(20)
Peas3
(6)
Tabletab:
|
tab:
 | Colour | Flavor
Apples | red | sourish
Peas | yellow | sweet

ColourFlavor
Applesredsourish
Peasyellowsweet
Molded horizontal cells|<tab:
 | Colour | Flavor
Apples | red | sourish
Peas gone! |< |<

ColourFlavor
Applesredsourish
Peas gone!
Molded vertical cells|^tab:
 | Colour | Flavor
Apples | red | sourish
Cherries |^| sourish

ColourFlavor
Applesredsourish
Cherriessourish


(warning) Please note it is more clear to add a new text paragraph element for each block (in this case the table-block).


Links and References inside text

Inside the text you can place links to external web sites or a document or image inside the system.

  • A reference is set by entering a reference command and a path to the location of the referenced target.
  • The description for a references follows after the path, separated by two # symbols
  • The whole phrase is set in square brackets.
  • Possible link- and reference-commands are shown in the table below
FormattingCommandExample InputExample Output
Internal Reference  (1)doc:Additional Information in [doc:/acme.com/en/Content##Content]
Additional Information in [doc:reference-context##Content]
Additional Information in Content
External Referencehttps:Visit us at [https://www.salient.de##Salient]Visit us at Salient
E-Mail (2)mailto:For further questions, please contact [mailto:service@salient.de##salient]For further questions, please contact salient
Popuppopup;pixel-width;pixel-heightAdditional Information in [doc:/acme.com/en/Content##Content##popup;500;600]Additional Information in Content
Modalmodal;pixel-width;pixel-heightAdditional Information in [doc:/acme.com/en/Content##Content##modal;500;600]Additional Information in Content
New Window_blank;pixel-width;pixel-heightAdditional Information in [doc:/acme.com/en/Content##Content##_blank;500;600]Additional Information in Content
Media Assetmedia:media:/Media/Picture##Description##80


Please note that links and references placed by this technique are not updated if the target document or asset is being moved. Therefore it is recommended to use paragraphs like the reference-paragraph instead.

(1) The use of absolute internal paths is problematic.  If the target document has been moved, this link will no longer be valid. As of openforms version 5.50, it ist possible to use reference context key defined in the 'Known Links' attribute of the current paragraph or version. 

(2) It is also possible to preset a mail body: [mailto:address##label##subject##body].

  • No labels