Skip to content

[EuiCodeBlock] Possibility to show line numbers #3140

@md-mq

Description

@md-mq

It would be nice to have a flag to show line numbers on EuiCodeBlock when not used inline.

e.g.

<EuiCodeBlock language={this.props.filetype} isCopyable={true} showLineNumbers={true}>
    {this.state.fileContent}
</EuiCodeBlock>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions