mobile icon indicating copy to clipboard operation
mobile copied to clipboard

feat: better syntax highlighting for descriptions and instructions

Open Sembauke opened this issue 2 years ago • 0 comments

This adds better highlighting in the learn component. The readability is now better for both instructions and description.

It uses the highlightingView plugin that is already used for some of the aspects in news / learn.

Now instead of only highlighting the syntax that is normally highlighted by Prisma. It now highlights everything. Instead of having a boring container, with a bad font.

We should also consider different themes for the highlighter. This one is now set to atom-one-dark Before:

image

After:

image

Sembauke avatar Oct 13 '22 12:10 Sembauke