<< Go Commands << Go Home

Command @text

Description:

Inserts text in a page.
 
Warning: command only works inside a .tg9 file.

Syntax:

@text
@@src
@@color
@@size
@@width
@@height
@end_text

Parameters:

Param @@src
description: path to text file
options:
optional: yes
 
Param @@color
description: text color
options:
default: #d4d4d4
optional: yes
 
Param @@size
description: text size
options: px
default: 16px
optional: yes
 
Param @@width
description: text box width
options: px, auto
default: auto
optional: yes
 
Param @@height
description: text box height
options: px, auto
default: auto
optional: yes
 
Param @@whitespace
description: espaços do texto
options: normal, pre
default: pre
optional: yes
 
Obs: parameters can be put in any line order

Example:

1 @text
2 @@src proj/docs/commands/comm_text/demo.txt
3 @@color cyan
4 @@size 16
5 @@width 50%
6 @@height auto
7 @end_text
8 @@whitespace normal

Output:

Cats are extraordinary pets, known worldwide for their independence, elegance, and unique personality.
These felines communicate with humans through a refined body language, expressive meows, and their characteristic purring, which frequently signals a state of deep comfort and well-being.