diff --git a/src/danog/MadelineProto/DocsBuilder/Constructors.php b/src/danog/MadelineProto/DocsBuilder/Constructors.php index 898ba61d..268cd585 100644 --- a/src/danog/MadelineProto/DocsBuilder/Constructors.php +++ b/src/danog/MadelineProto/DocsBuilder/Constructors.php @@ -202,7 +202,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png if (!isset($this->settings['td'])) { $example = '### Example: -``` +```php $'.$constructor.$layer.' = '.$params.'; ``` @@ -213,10 +213,9 @@ $'.$constructor.$layer.' = '.$params.'; ``` -Or, if you\'re into Lua: +Or, if you\'re into Lua: - -``` +```lua '.$constructor.$layer.'='.$lua_params.' ``` @@ -242,7 +241,7 @@ Set parse_mode to Markdown to enable markown AND html parsing of the message. The following tags are currently supported: -``` +```html
a newline bold works ok, internal tags are stripped bold @@ -258,7 +257,7 @@ The following tags are currently supported: You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: -``` +```markdown [Mention by username](mention:@danogentili) [Mention by user id](mention:186785362) ``` diff --git a/src/danog/MadelineProto/DocsBuilder/Methods.php b/src/danog/MadelineProto/DocsBuilder/Methods.php index 78c793fe..bcdd2982 100644 --- a/src/danog/MadelineProto/DocsBuilder/Methods.php +++ b/src/danog/MadelineProto/DocsBuilder/Methods.php @@ -211,7 +211,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png $example .= str_replace('[]', '', '### MadelineProto Example: -``` +```php if (!file_exists(\'madeline.php\')) { copy(\'https://phar.madelineproto.xyz/madeline.php\', \'madeline.php\'); } @@ -247,7 +247,7 @@ Parameters: Or, if you\'re into Lua: -``` +```lua '.$type.' = '.$data['method'].'({'.$lua_params.'}) ``` @@ -280,7 +280,7 @@ Set parse_mode to Markdown to enable markown AND html parsing of the message. The following tags are currently supported: -``` +```html
a newline bold works ok, internal tags are stripped bold @@ -296,7 +296,7 @@ The following tags are currently supported: You can also use normal markdown, note that to create mentions you must use the `mention:` syntax like in html: -``` +```markdown [Mention by username](mention:@danogentili) [Mention by user id](mention:186785362) ```