-
Hi! I started creating website projects for nuxt, and I use nuxt content for some content, of the website. Can I ask how to setup it in Nuxt 3 project? thanks, thanks 👍🏻 |
Beta Was this translation helpful? Give feedback.
Answered by
JenuelDev
Sep 18, 2022
Replies: 1 comment
-
I now figured it out, it seems by default, the codehighlighing is disabled by default. so to enable it you have to set up the configuration in the nuxt config configuration. https://content.nuxtjs.org/api/configuration#highlight. So I have to add something like this. export default defineNuxtConfig({
content: {
highlight: {
theme: 'one-dark-pro'
}
}
}
}) This are the available themes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JenuelDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I now figured it out, it seems by default, the codehighlighing is disabled by default. so to enable it you have to set up the configuration in the nuxt config configuration. https://content.nuxtjs.org/api/configuration#highlight.
So I have to add something like this.
This are the available themes: