highlight
highlight copied to clipboard
🎨 Fast, extensible, server-side code highlighting for web and terminal
Using tempest/highlight 2.10.2, the following piece of code results in a fatal error: ```php
```php 27 try { 28 $this->pdo 29 ->prepare($query->getSql()) 30 ->execute($bindings); 31 } catch (PDOException $pdoException) { 32 throw new QueryException($query, $bindings, $pdoException); < 33 } ```
### Tempest version 2.11.4 ### PHP version 8.4 ### Operating system Linux ### Description Consider this HTML: ```html ``` This library only highlights the attribute "class". ```html <img class="a" alt...
### Description XML should probably support colons in tag names and attributes for namespaces. ### Benefits XML highlighting will work with namespaces, it's also a super easy addition.
```php public function add(mixed $value): static { return $this->createOrModify(namespace\push($this->value, $value)); } ```
The [Ellison demo](https://tempestphp.com/ellison) linked from the docs is currently broken. Any content which is submitted returns a 500 response. 
### Environment: - OS: MacOS Sequoia - PHP version: 8.3 ### What happens: When there is a function with a parameter in the code surrounded by custom classes tag, I...