Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Code highlighter #82

Closed
butschster opened this issue Oct 25, 2021 · 2 comments · Fixed by #87
Closed

[Feature] Code highlighter #82

butschster opened this issue Oct 25, 2021 · 2 comments · Fixed by #87
Assignees
Labels
enhancement New feature or request

Comments

@butschster
Copy link
Contributor

What do you think if use Highlighter from nunomaduro/collision for rendering code snippets.

Something like this

<code line="18" start-line="14">
  /** @test */
  function sentryReport()
  {
    try {
      throw new \Exception('Something went wrong');
    } catch (\Throwable $e) {
      report($e);
    }
  }
</code>

Will output

      14▕     /** @test */
      15▕     function sentryReport()
      16▕     {
      17▕         try {
  ➜  18▕             throw new \Exception('Something went wrong');
      19▕         } catch (\Throwable $e) {
      20▕             report($e);
      21▕         }
      22▕     }
@butschster butschster changed the title Code highlighter [Feature] Code highlighter Oct 25, 2021
@xiCO2k xiCO2k added the enhancement New feature or request label Oct 25, 2021
@xiCO2k
Copy link
Collaborator

xiCO2k commented Oct 25, 2021

@nunomaduro what do you think of this?

@nunomaduro
Copy link
Owner

This is over 9000. Love it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants