[all-commits] [llvm/llvm-project] ae7698: [Docs] don't stylize syntax errors in code blocks ...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Wed Jul 29 13:08:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae76985401e3e89e273e43da283f513c7316272d
      https://github.com/llvm/llvm-project/commit/ae76985401e3e89e273e43da283f513c7316272d
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M llvm/docs/_static/custom.css

  Log Message:
  -----------
  [Docs] don't stylize syntax errors in code blocks (#212698)

When a code block in the documentation contains (almost) pseudocode, the
Pygments parser flags errors and renders them with red-bordered boxes.
This is unnecessarily ugly. We can see examples of this in the LangRef
with LLVM code blocks.

Instead set the style to just render them as plain text. This is still
recognizable as incorrect syntax, but does not distract the reader from
the actual example.

Assisted-by: Claude Opus 4.8



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list