At this moment, the online tool of preliminary text formatting provides the following functionality:
Formatted or not formatted plain text, separated by lines, from any text editor. An example could be to copy a text from the Microsoft Word text editor and paste it in the main form. The text will be formatted in blocks by lines.
At the beginning of the text preformatting process, the service removes duplications of white spaces and tabulation characters from text. This option can be disabled. In this case, text will remain its original format. In addition, all HTML tags will be removed, maybe in future versions it will be possible to keep them. After cleaning, a process of text and syntax parsing happens.
In addition to cleaning the text, the service has the ability to clean the lists. If this option is enabled, any initial characters in the lists will be removed during processing. Initial characters are any single characters at the beginning of the string, except for letters and numbers. This is convenient if you need to remove automatically added list markers from the list items.
Each processed line will be wrapped in a paragraph <p> or a block <div> tag, or will remain unchanged. This behavior depends on settings which you can find above the main form (by default it is set to a paragraph tag <p>). In addition to paragraph wrapping, the service has its syntax which allows getting HTML tags in the resulting text in a simple and quick way. The syntax is case-insensitive, what’s why uppercase and lowercase letters can be used.
There are currently two options for adding tags:
Specifying a tag at the beginning of the line, allows adding single- and multi-line HTML elements by wrapping the inside text in them. At this moment, you can specify Headline tags <h1>-<h6>, tags <strong>, <b>, <sup>, <sub>, <small>, unordered <ul> and ordered <ol> list, as well as a paragraph/block with built-in line breakdown with the <br /> tag.
Specifying tags in the line body, allows adding multiple HTML elements with a specially defined mask to the resulting strings. Currently, implemented tags are: <a>,<abbr>,<b>,<code>,<del>,<dfn>,<em>,<i>,<img>,<ins>,<small>,<span>,<strong>,<sub>,<sup>.
Each syntax construction that starts with an exclamation mark (!) will be ignored while processing. Please note, that incorrectly formed constructions will also be marked the same way after processing. If you find a syntax structure with an exclamation mark in the resulting text, please check if the syntax was correct.
Single-line elements: | |
---|---|
Wrapping a line with headlines | h1 space at the beginning of the line before text (available values h1 to h6). |
Wrapping a line with a strong tag | stg or strong space at the beginning of the line before a text |
Wrapping a line with a b tag | stb or b space at the beginning of the line before a text |
Wrapping a line with a sup tag | sup space at the beginning of the line before a text |
Wrapping a line with a sub tag | sub space at the beginning of the line before a text |
Wrapping a line with a small tag | sml or small space at the beginning of the line before a text |
Multi-line elements: | |
Wrapping lines with an unordered list | insert uls before a list and ule after a list |
Wrapping lines with an ordered list | insert ols before a list and ole after a list |
Wrapping lines with a paragraph | insert pbs before a paragraph and pbe after a paragraph |
Wrapping lines with a block | insert dbs before a block and dbe after a block |
Inline elements: | |
Adding a link tag a | anywhere inside a string a:url_address or a:attribute=data_without_spaces:attribute="data with spaces" (href and text attributes are mandatory) |
Adding an img tag | anywhere inside a string img:path_to_file_without_spaces or img:attribute=data_without_spaces:attribute="data with spaces" (a src attribute is mandatory) |
Adding a small tag | anywhere inside a string small:data_without_spaces or small:attribute=data_without_spaces:attribute="data with spaces" (a text attribute is mandatory) |
Use the same technique to add other tags <abbr>,<b>,<code>,<del>,<dfn>,<em>,<i>,<ins>,<span>,<strong>,<sub>,<sup>. |
For wrapping a line with a headline, write a headline number, e.g. h1, at the beginning of the line before a text. Usage:
For adding a small text, use the same technique as with headlines. Write sml or small at the beginning of the line before a text. Usage:
For adding an image (the <img> tag), you can use two syntax constructions: short and full. In the short version, you need to edit manually an alt attribute of the image tag. In the full version, you can pass any attributes, including the alt attribute, in one syntax construction (in the full version the src attribute is mandatory).
For adding a link (the <a> tag), you can use two syntax constructions: short and full. In the short version, you need to edit manually the internal text of the link tag. In the full version you can pass any attributes, including the href attribute, in one syntax construction (in the full version the href and text attributes are mandatory).
For adding other inline elements <abbr>,<b>,<code>,<del>,<dfn>,<em>,<i>,<ins>,<span>,<strong>,<sub>,<sup> you can use two syntax constructions: short and full (in the full version a text attribute is mandatory).
For adding lists in the text you need to outline a text block, which you wish to wrap in a list, and separate this part by adding new lines before and after the text. After that, you need to write a construction ULS or OLS at the new line before the text block and a construction ULE or OLE at the new line after the block. Use ULS…ULE construction if you want to make an unordered list and OLS…OLE for an ordered list. Usage:
In a similar way, but with a little bit different syntax, you can wrap a part of a text with a paragraph or a block tag with line breakdown inside it. The line wrapping is realized through a usage of the <br /> tag. In this case, you need to outline a text block and add a construction PBS at the new line before the text block and a construction PBE at the new line after block. Use PBE…PBE construction if you want to make a paragraph with wrapped text or DBS…DBE construction for a block with wrapped text. Usage: