MadelineProtoDocs/old_docs/API_docs_v109/constructors/pageBlockPreformatted.md
2020-03-06 12:24:14 +01:00

831 B

title description image
pageBlockPreformatted Preformatted (`<pre>` text) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pageBlockPreformatted

Back to constructors index

Preformatted (<pre> text)

Attributes:

Name Type Required Description
text RichText Yes Text
language string Yes Programming language of preformatted text

Type: PageBlock

Example:

$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => 'string'];

Or, if you're into Lua:

pageBlockPreformatted={_='pageBlockPreformatted', text=RichText, language='string'}