在 Vue 项目中使用 highlight.js 设置背景需要以下步骤: 安装 highlight.js:在项目中使用 npm 或 yarn 安装 highlight.js。 npminstall highlight.js