Skip to content

Commit

Permalink
Merge pull request #7584 from newrelic/sd_prism_3
Browse files Browse the repository at this point in the history
feat(gatsby-config): added languages to prism
  • Loading branch information
homelessbirds committed May 25, 2022
2 parents ee8b6ad + dcf7a00 commit 56f24ff
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 20 deletions.
52 changes: 42 additions & 10 deletions gatsby-config.js
Expand Up @@ -61,19 +61,51 @@ module.exports = {
},
prism: {
languages: [
'xml',
'xml-doc',
'c',
'go',
'handlebars',
'java',
'md',
'css',
'js',
'aspnet',
'csv',
'cmake',
'dax',
'diff',
'django',
'jinja2',
'docker',
'dockerfile',
'elixir',
'erlang',
'gettext',
'pascal',
'parser',
'nginx',
'n1ql',
'monkey',
'mongodb',
'liquid',
'json5',
'jsdoc',
'mustache',
'powershell',
'promql',
'protobuf',
'puppet',
'jsx',
'regex',
'ruby',
'scala',
'shell',
'swift',
'systemd',
'toml',
'velocity',
'vim',
'php',
'graphql',
'phpdoc',
'xml',
'xml-doc',
'csharp',
'shell',
'python',
'md',
'java',
],
},
splitio: {
Expand Down
81 changes: 71 additions & 10 deletions src/content/docs/style-guide/formatting/code-examples.mdx
Expand Up @@ -163,16 +163,77 @@ To format one or more lines of code, insert three backticks ( ```` ``` ```` ) ab
```json
prism: {
languages: [
'xml',
'xml-doc',
'c',
'go',
'handlebars',
'java',
'php',
'phpdoc',
'csharp',
'python',
'aspnet',
'c',
'cmake',
'coffeescript',
'cpp',
'csharp',
'css',
'css-extras',
'csv',
'dax',
'diff',
'django',
'docker',
'dockerfile',
'elixir',
'erlang',
'gettext',
'git',
'go',
'gradle',
'graphql',
'handlebars',
'java',
'javascript',
'jinja2',
'js',
'js-extras',
'json',
'json5',
'jsdoc',
'jsx',
'liquid',
'makefile',
'markdown',
'md',
'monkey',
'mongodb',
'mustache',
'objectivec',
'ocaml',
'pascal',
'parser',
'php',
'phpdoc',
'powershell',
'promql',
'protobuf',
'puppet',
'python',
'nginx',
'n1ql',
'reason',
'regex',
'ruby',
'sass',
'scala',
'scss',
'shell',
'sql',
'swift',
'stylus',
'systemd',
'toml',
'tsx',
'typescript',
'velocity',
'vim',
'wasm',
'xml',
'xml-doc',
'yaml',
],
},
```
Expand Down

0 comments on commit 56f24ff

Please sign in to comment.