Add dynamic code block highlighting documentation#1626
Add dynamic code block highlighting documentation#1626Koooooo-7 merged 2 commits intodocsifyjs:developfrom gadhagod:develop
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/E2hU1fuYRKHjcuBd2BGy291C87EH |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 94ea16e:
|
|
That code block actually shows how to create a 'code' element and highlight it. It's not a demo of this though, and it's written in JavaScript. If u want, I can add a demo too (you click a button, adds some highlighted code block to page). |
yea, what I meant is that the should render this code as |
|
Oh I misunderstood your comment @Koooooo-7. This is probably because you need a |
|
SInce you need an external Prism script to include bash in recognizable languages, I'll change the language of this example to javascript. |

Summary
Small documentation change that shows how to highlight javascript-created code blocks in docsify.
What kind of change does this PR introduce?
Docs
For any code change,
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
Related issue, if any:
Tested in the following browsers: