Skip to content

[Feature Request] Add a title / label for code block #1297

Closed

Description

@toby-fox

[Feature Request] Add a title / label for code block

Currently there is a lot of space in the upper area of a code block due the selection box and copy button on the right.

Suggestion:
Please add an optional title or label for displaying a filename or a short description. It could be on the left side on the same level like the selection box on the right. See example below.

Image

Advantages:

  • Improved visual balance
  • Possibility to add a short but important information like filename (e.g 'main.py') or a context (e.g. 'Example Output', 'YAML Configuration')
  • More consistency in complex documentation.

Optional:
Hide the complete head of the code block. So the title, selection box and the copy button will be hidden and the code will be more closer to the text above.

Thank you.

Activity

  1. Vito0912 commented on Jun 25, 2025

    @Vito0912
    Contributor
  2. Philipinho commented on Mar 2, 2026

    @Philipinho
    Member

    Existing issue #675.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions