TxStyle · Textile Documentation

The Textile Markup Reference for Textpattern


Unicode symbols

Some unicode symbols can be produced by placing simple characters in parentheses or square brackets.



Input (editable)

Browser
HTML

More about: Unicode symbols

  1. Other unicode characters and symbols

Unicode symbols can be entered in decimal form, like this:

p{font-size:20pt}. ☢ ☁ ♘

With a browser that is capable and a font that supports the characters you will see this:

☢ ☁ ♘

  1. Conversion of hexadecimal representation of Unicode symbols

For searching and conversion of unicode symbols into the HTML form, see the Unicode character table tool.

  1. Setting alternate glyphs

Textile’s typographic substitutions can be overridden with the setSymbol method. If you need to setup Textile to do non-standard substitutions, call setSymbol before you parse the input with textileThis or textileRestricted.

$parser = new \Netcarver\Textile\Parser();
$parser->setSymbol('half', '1⁄2');
$parser->textileThis('Hello [1/2] World!');

The symbol names you can pass to setSymbol() can be found here.

Paste code into the box above.

Further reading: Unicode symbols




PHP Textile v3.7.0