Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nihir's avatar

For code, you can use

``` This ```

for inline code, you can use like this This And for link, you can use

>HTTP://yourlink.com

https://yourwebsite.com

springz's avatar

test code:

<?php function blah();

some other test

<?PHP more code();

wilberth-cl's avatar
 class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    public function __construct()
    {
        //this is a comment
    }
}
Valcav's avatar

testing text. The following should be in a code quote: testing to see if this is a code quote testing 2

how can I get the next block & this: "START QUOTE: function filterByAuthor($books, $author): array { $filteredBooks = [];

        foreach ($books as $book) {
	        if ($book['author'] === $author) {
                $filteredBooks[] = $book;
            }
        }
        
        return $filteredBooks;
    } END QUOTE"

together in 1 block quote? the following try still doesn't show a part of the code...

        {
            $filteredBooks = [];
	
	        foreach ($books as $book) {
		        if ($book['author'] === $author) {
                    $filteredBooks[] = $book;
                }
            }
            
            return $filteredBooks;
        }```
Previous

Please or to participate in this conversation.