2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: pageBlockPreformatted
|
2017-08-25 15:05:53 +02:00
|
|
|
description: Preformatted text paragraph
|
2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
## Constructor: pageBlockPreformatted
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-25 15:05:53 +02:00
|
|
|
Preformatted text paragraph
|
|
|
|
|
2017-01-25 23:16:22 +01:00
|
|
|
### Attributes:
|
|
|
|
|
2017-08-25 15:05:53 +02:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|text|[RichText](../types/RichText.md) | Yes|Paragraph text|
|
|
|
|
|language|[string](../types/string.md) | Yes|Programming language for which the text should be formatted|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PageBlock](../types/PageBlock.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => 'string'];
|
2017-01-25 23:16:22 +01:00
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
{"_": "pageBlockPreformatted", "text": RichText, "language": "string"}
|
2017-07-23 16:11:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
2017-07-23 16:33:46 +02:00
|
|
|
pageBlockPreformatted={_='pageBlockPreformatted', text=RichText, language='string'}
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|