webui: Code highlighting

Labels: area/ui/web lifecycle/frozen priority/important-longterm triage/needs-milestone

Timeline

Timothée Mazzucotelli (pawamoy) opened (edited)

Currently code blocks are not highlighted in the webui. It would be nice to highlight them! As for emojis, maybe a javascript lib could do the trick, though it would not play well with the offline side of things.

Cláudio Silva (claudioantonio) added label area/ui/web

Cláudio Silva (claudioantonio) commented

@pawamoy could You add a screenshot about Your expectation? ;-)

Timothée Mazzucotelli (pawamoy) commented

Sure!

Comment in git bug webui:

Screenshot_2021-02-28_13-17-00

(dark theme thanks to dark reader extension)

Same comment on GitHub:

Screenshot_2021-02-28_13-17-38

I'm not asking to replicate the GitHub style of course, but simply for highlighting of code blocks, respecting the language given after the triple backticks (Python in this example).

Hope this clarifies the feature request :slightly_smiling_face: Also thank you very much for you quick answer @claudioantonio!

github-actions (github-actions) commented

This bot triages untriaged issues and PRs according to the following rules:

  • After 90 days of inactivity, the lifecycle/stale label is applied
  • After 30 days of inactivity since lifecycle/stale was applied, the issue is closed

To remove the stale status, you can:

  • Remove the lifecycle/stale label
  • Comment on this issue

github-actions (github-actions) added label lifecycle/stale

github-actions (github-actions) commented

This bot triages issues in order to help the maintainers identify what needs attention, according to the following lifecycle rules:

  • After 90 days of inactivity, lifecycle/stale is applied
  • After 90 days of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied

This bot will not automatically close stale issues.

To remove the stale status, you can:

  • Remove the stale label from this issue
  • Comment on this issue
  • Close this issue
  • Offer to help out with triaging

To avoid automatic lifecycle management of this issue, add lifecycle/frozen.

github-actions (github-actions) added label lifecycle/rotten

github-actions (github-actions) removed label lifecycle/stale

sudoforge removed label lifecycle/rotten

sudoforge added label priority/important-longterm

sudoforge added label triage/needs-milestone

sudoforge added label lifecycle/frozen

sudoforge removed label lifecycle/pinned

Jonathan Raphaelson (lygaret) commented

@sudoforge I forgot to mention this as closed in the footer for #1444, but I believe this one is closed

sudoforge commented

i believe so, too. thanks for your hard work!

sudoforge closed the bug