FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.85k stars 152 forks source link

Visual indent guide lines #173

Closed mrzealot closed 7 months ago

mrzealot commented 1 year ago

Hey! :wave:

Coming to this great project from Docusaurus, thought it might be more relevant to ask here: how would I go about visualizing indent lines in a codeblock? Is there a way currently (or a relatively pain-free way to add this functionality)? I'm presenting medium/large YAML config snippets in my docs and being able to see the indent depth/level would help a lot in making them more easily parsable. Thanks!

carbonrobot commented 7 months ago

Any plugins and options supported by Prismjs should work here. Take a look at their docs to see if something works for you.

https://prismjs.com/index.html#plugins