-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Code highlight #35
Comments
How can we detect the langage of the code sample? |
highlight.js supports syntax highlighting with language detection |
Made a quick PR for this!: #54 |
Note, poking around in the developer console for ChatGPT, it seems like they're using hljs too. This means, with the above PR we should have the same quality (or lack thereof) of highlighting as they do! |
Made another implementation before I saw this. Maybe it will be useful too #68 |
Add support for almost all languages |
Hey @deiucanta! Can you please check this? |
It would be very good to add code highlighting as it happens in chatGPT.
I changed the code using the same libraries you used and the result was this:
To allow this just import the library import { Prisma } from '@mantine/prism';
and changed the code, as below:
The text was updated successfully, but these errors were encountered: