Skip to content

disable copy icon on specific code sections #1361

Open
@anantshri

Description

@anantshri

Right now copy is either enabled on all or none can we make some option available where a specific code block could be marked as copy disable.

I use a fix where i mark code as console output and added a javascript block to look for language-shell and not add copy options in it.

having a better approach would be ideal.
A possible option i can think off: A marker we can add to language say bash-nocopy or python-nocopy so it retains the language specific formatting but lose copy button

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions