MadelineProtoDocs/old_docs/API_docs_v25/constructors/pageBlockPreformatted.md
2020-06-16 17:50:25 +02: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'}