Skip to content

Commit

Permalink
Update src/Client/TrapHandle.php
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored May 27, 2024
1 parent 26a08ea commit 0a450c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Client/TrapHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,14 @@ public function context(mixed ...$values): self
}

/**
* Code highlighting.
* Will call the context method{@see context()} and pass the language parameter
* Code syntax highlighting.
*
* Adds `language` data context to denote the passed data as source code.
* In this case, Buggragator will perform code highlighting.
*
* Note: it equals to `trap()->context(language: $syntax);`
*
* @param non-empty-string $syntax The name of the programming language
*/
public function code(string $syntax): self
{
Expand Down

0 comments on commit 0a450c2

Please sign in to comment.