js displays the formatted code and highlights it (code highlighting is implemented in vue)
Implement a simple version of the web editor, without intelligent prompts, and will not automatically highlight labels (manual highlighting is required)
vue is used+ Highlight.js + js-beautify
The effect is shown in the figure below
js implementation code formatting
First, we will use the < pre > < / pre > and < code &g ...
Posted by CrimsonSoul on Sun, 23 Jan 2022 13:44:30 +0100