Skip to content

Add "copy code" functionality for command examples #319

Closed
@dedemorton

Description

@dedemorton

When users try to copy/paste a command example that spans multiple lines and has callouts, the callouts are replaced with empty spaces, which breaks the command.

For example:

image

It would be nice to provide users with a link or icon (similar to the "copy as curl" link for CURL examples) that copies the code with continuation characters, but without the extra spaces added by callouts.

Edited: Note that this example comes from https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferenhancementSomething we'd like to improveexamplesExamples, Snippets, Code Blocks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions