[contents]
Contents
Syntax
The syntax for ent calls is:
Description
The ent function is for getting html entities (other types of entities will be supported in the future), it takes a single string parameter to specify which entity to return.
The entities currently available with Nift are in the table below:
syntax |
output |
rendered |
ent('\`') |
` |
` |
ent('~') |
˜ |
˜ |
ent('!') |
! |
! |
ent('\@') or ent(@) |
@ |
@ |
ent('#') |
# |
# |
ent('$') |
$ |
$ |
ent('%') |
% |
% |
ent('^') |
^ |
^ |
ent('&') |
& |
& |
ent('*') |
* |
* |
ent('?') |
? |
? |
ent('<') |
< |
< |
ent('>') |
> |
> |
ent('(') |
( |
( |
ent(')') |
) |
) |
ent('[') |
[ |
[ |
ent(']') |
] |
] |
ent('{') |
{ |
{ |
ent('}') |
} |
} |
ent('-') |
− |
− |
ent('_') |
_ |
_ |
ent('=') |
= |
= |
ent('+') |
+ |
+ |
ent('|') |
| |
| |
ent('\\') or ent(\) |
\ |
\ |
ent('/') |
/ |
/ |
ent(';') |
; |
; |
ent(':') |
: |
: |
ent('\'') |
' |
' |
ent('"') |
" |
" |
ent(',') |
, |
, |
ent('.') |
. |
. |
ent('£') |
£ |
£ |
ent('¥') |
¥ |
¥ |
ent('€') |
€ |
€ |
ent("section") |
§ |
§ |
ent("+-") |
± |
± |
ent("-+") |
∓ |
∓ |
ent("!=") |
≠ |
≠ |
ent("<=") |
≤ |
≤ |
ent(">=") |
≥ |
≥ |
ent("->") |
→ |
→ |
ent("<-") |
← |
← |
ent("<->") |
↔ |
↔ |
ent("==>") |
⇒ |
⇒ |
ent("<==") |
⇐ |
⇐ |
ent("<==>") |
⇔ |
⇔ |
ent("<=!=>") |
⇎ |
⇎ |
ent("...") |
… |
… |
syntax |
output |
rendered |
f++ example
Example of ent being used with f++:
ent('!')
ent("<=")
ent("...")
n++ example
Example of ent being used with n++:
@ent('!')
@ent("<=")
@ent("...")