FORMAT TEXT

ALL ABOUT FORMATTING TEXT

COLORS

In the digital typewriter colors can be specified usign theri english name or as their rgb values. These values will be referred as colorname. When a colorvalue is expressed as a rgb value no spaces are written between the values.

🔴 can be written as red or as rgb(255,0,0) 🔵 can be written as blue or as rgb(0,255,0) ...

:color>colorname:

The command color change the text color of the active paragraph.

:color>colorname:

EXAMPLE:

:color>red:
:color>lime:
:color>rgb(255,0,0):
:color>rgb(150,34,200):

:textcolor>colorname:

The textcolor command change the color of all the paragraphs.

:defaultcolor>colorname:

Changes the default text color for the new created paragraphs. The initial default color is white.

:highlight>colorname:

The highlight command change the color of the text background.

:bckcolor>colorname:

Changes the backgroud color of the page. By default is white.

TEXT ALIGNEMENT

Every paragraph can be aligned in 3 different way: left, center or right.

:align>alignemet:

Change the alignement of the active paragraph. Alignement can take the 3 different values:

  • left

  • center

  • right

TETX DIMENSION

By default every paragraph have a normal text dimension. This can be changed in smaller, small, big, bigger, huge or back to normal.

:smaller:

Set the text dimension of the active paragraph to smaller (10px).

:small:

Set the text dimension of the active paragraph to small (20px).

:normal:

Set the text dimension of the active paragraph to normal (30px).

:big:

Set the text dimension of the active paragraph to big (40px).

:bigger:

Set the text dimension of the active paragraph to bigger (50px).

:huge:

Set the text dimension of the active paragraph to huge (100px).

FONT

Font and fontstyle can be changed in the digital typewriter.

:font>fontname:

Change the font of the active paragrpah. Fontname can take the value of the name of another font (arial, helvetica, impact, courier, etc.)

:bold:

Activate or deactivate the font style bold for the current paragraph.

:italic:

Activate or deactivate the font style italic for the current paragraph.

SPACING

It is possible to insert spacing between the paragraphs.

:space>value:

Insert a white space befor the value with a dimension fo value * 10.

Last updated