使用listings宏包实现代码高亮时出现错误

发布于 2022-03-14 22:39:22

<div class="ls_editor_block" data-type="text"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="text" placeholder="点击' + '插入内容或直接输入"></div> </div></div><div class="ls_editor_block" data-type="image"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="image" placeholder="点击' + '插入内容或直接输入">报错提示<img src="/uploads/ls_editor/images/2022/03/14/341172dc3b3824b45fc31d4d7df4fe01.jpeg"></div> </div></div><div class="ls_editor_block" data-type="image"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="image" placeholder="点击' + '插入内容或直接输入"><img src="/uploads/ls_editor/images/2022/03/14/4bb8842a7ec7beabfc8c771a3ced1bf0.jpeg"></div> </div></div><div class="ls_editor_block" data-type="text"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="text" placeholder="点击' + '插入内容或直接输入">引用的宏包</div> </div></div><div class="ls_editor_block" data-type="image"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="image" placeholder="点击' + '插入内容或直接输入">关键代码????<img src="/uploads/ls_editor/images/2022/03/14/8433963a523c83db5fe5c5bc703aeead.jpeg"></div> </div></div><div class="ls_editor_block" data-type="image"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="image" placeholder="点击' + '插入内容或直接输入"><img src="/uploads/ls_editor/images/2022/03/14/45943fe93d3dc33079c3fd737f483428.jpeg">编译效果</div> </div></div>

查看更多

关注者
0
被浏览
1.3k
1 个回答
Dreibein
Dreibein 2022-03-15
这家伙很懒,什么也没写!

<div class="ls_editor_block" data-type="text"><div class="b"> </div><div class="m"> <div class="c" contenteditable="plaintext-only" data-type="text" placeholder="点击' + '插入内容或直接输入">没用过listings, 不过不是给出错误原因了吗? \ 是新起一行, 应该用 basicstyle = ttfamily 吧? 另外给代码, 别光贴图片, 别人想试试还得自己敲代码?</div> </div></div>

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览