Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a Gutenberg block for syntax-highlighted code. #78
The syntax highlighting only works on the front end, due to the nature of SyntaxHighlighter. Details are documented in the
Because of that, this isn't the ideal syntax highlighting block, but this provides a way for existing users to continue using the plugin without having to migrate old posts to a different plugin.
Another limitation is that this PR only supports the
: An ideal solution would probably use Code Mirror, since it's already shipped with Core, and leaves the editable input field in tact.