carbon-design-system / gatsby-theme-carbon

A Carbon inspired Gatsby theme
https://gatsby.carbondesignsystem.com/
Apache License 2.0
358 stars 273 forks source link

Add additional languages to Prism (v5) #1485

Open alisonjoseph opened 4 months ago

alisonjoseph commented 4 months ago

Pulled from: https://github.com/carbon-design-system/gatsby-theme-carbon/issues/1439#issuecomment-2018600672

Supported languages https://prismjs.com/#supported-languages

Any additional languages now need to be added manually only include these base languages by default: https://github.com/FormidableLabs/prism-react-renderer/blob/c914fdea48625ba59c8022174bb3df1ed802ce4d/packages/generate-prism-languages/index.ts#L9-L23

  "jsx",
  "tsx",
  "swift",
  "kotlin",
  "objectivec",
  "js-extras",
  "reason",
  "rust",
  "graphql",
  "yaml",
  "go",
  "cpp",
  "markdown",
radarfox commented 1 month ago

I would welcome bash to be added to keep the backwards compatibility from v4, as you have already mentioned.