Skip to content

[EuiCodeBlock] Replace highlight.js as the engine #3947

@snide

Description

@snide

Although popular, highlight.js is pretty slow and getting a little old in its methodology. I often see it fail in complex syntax blocks and it'd be nice if we had something that provided virtualization out of the gate.

I'd like to look into replacing it with react-syntax-highlighter which is backed by Prism JS (which I have some love and familiarity with) and comes with virtualization (which would close #1208).

I can give this a shot myself, but please give a yell if anything looks out of sort from that dependency. The bulk of the work I think will be transferring our styling over.

Metadata

Metadata

Assignees

Labels

dependenciesPRs that update a dependency file

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