Skip to content
Discussion options

You must be logged in to vote

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:

| 'css-variables'
  | 'dark-plus'
  | 'dracula-soft'
  | 'dracula'
  | 'github-dark-dimmed'
  | 'github-dark'
  | 'github-light'
  | 'hc_light'
  | 'light-plus'
  | 'material-darker'
  | 'material-default'
  | 'material-lighter'
  | 'material-ocean'
  | 'material-palenight'
  | 'min-d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JenuelDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant