Skip to content

Commit 047aa1c

Browse files
committed
Add syntax highlighting guide in README.md
1 parent 0047243 commit 047aa1c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ Creating a `example.md` in a sub folder will create a category in the sidebar.
6262
```bash
6363
root
6464
├── docs
65-
└── sub-folder
66-
└── example.md
65+
└── sub-folder
66+
│ └── example.md
6767
```
6868

6969
To change the category name or other category meta data, an optional file `_category_.json` can be created in the respective sub folder. More [here](https://docusaurus.io/docs/next/sidebar/autogenerated#autogenerated-sidebar-metadata).
@@ -86,6 +86,10 @@ Generate the variables from [here](https://docusaurus.io/docs/next/styling-layou
8686

8787
Docusaurus uses [Prism React Renderer](https://github.com/FormidableLabs/prism-react-renderer) to highlight code blocks. All configuration are in the `prism` object of `docusaurus.config.js`. You can specify a custom theme from the [list of available themes](https://github.com/FormidableLabs/prism-react-renderer/tree/master/src/themes).
8888

89+
### Syntax highlighting
90+
91+
To add syntax highlighting for any of the other [Prism-supported languages](https://prismjs.com/#supported-languages), define it in an array of additional languages. More [here](https://docusaurus.io/docs/next/markdown-features/code-blocks#supported-languages).
92+
8993
### Change footer
9094

9195
You can add logo and a copyright to the footer via `themeConfig.footer`. More [here](https://docusaurus.io/docs/next/api/themes/configuration#footer-1).

0 commit comments

Comments
 (0)