当前位置:网站首页>如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
2022-04-23 05:10:00 【叶庭云】
一、网上已有的方法
网上已有的方法总结下来主要有以下几种:
planetB | Syntax Highlight Code In Word Documents

因为是国外的网站,加载很慢不说,现在这网站已经不能用了!
Pycharm/VSCode等集成开发环境里的代码直接复制贴到 Word 里,会保持代码高亮的效果。或者使用 Typora/Notepad++ 等软件转化样式再贴到Word。
网站 word.wd1x 可以很方便地为代码着色,就是生成效果一般,如下所示:

还有个 Python 的 Pygments,操作演示如下:

二、推荐方法
利用现有的 MarkDown 排版工具的代码高亮,然后再贴到Word,比如:Md2All、MarkDownNice。演示如下:


Md2All 代码主题(都挺好看,白底适合贴到Word):atelier-cave-light、atelier-dune-light、github-gist、googlecode、school-book、xcode
版权声明
本文为[叶庭云]所创,转载请带上原文链接,感谢
https://yetingyun.blog.csdn.net/article/details/123449641
边栏推荐
- Use AES encryption - reuse the wisdom of predecessors
- Servlet3 0 + event driven for high performance long polling
- What are instruction cycles, machine cycles, and clock cycles?
- [2021] Spatio-Temporal Graph Contrastive Learning
- Informatics Olympiad 1955: [11noip popularization group] Swiss round | openjudge 4.1 4363: Swiss round | Luogu p1309 [noip2011 popularization group] Swiss round
- JS engine loop mechanism: synchronous, asynchronous, event loop
- Mac 进入mysql终端命令
- 静态流水线和动态流水线的区别认识
- MySQL external connection, internal connection, self connection, natural connection, cross connection
- MySQL circularly adds sequence numbers according to the values of a column
猜你喜欢

COM in wine (2) -- basic code analysis
![[winui3] Écrivez une copie du gestionnaire de fichiers Explorer](/img/3e/62794f1939da7f36f7a4e9dbf0aa7a.png)
[winui3] Écrivez une copie du gestionnaire de fichiers Explorer

MySQL -- execution process and principle of a statement

MySQL 慢查询

【数据库】MySQL基本操作(基操~)

Spell it! Two A-level universities and six B-level universities have abolished master's degree programs in software engineering!

MySQL circularly adds sequence numbers according to the values of a column

深度学习笔记 —— 微调

Good simple recursive problem, string recursive training

直播带货表格模板-自动显示图片-自动关联系列商品
随机推荐
What are instruction cycles, machine cycles, and clock cycles?
SCP command details
[winui3] Écrivez une copie du gestionnaire de fichiers Explorer
MySQL basics 3
Knowledge points sorting: ES6
C. Tree Infection(模拟+贪心)
What are the redis data types
MySQL -- execution process and principle of a statement
Deep learning notes - object detection and dataset + anchor box
MySQL - index
机器学习---线性回归
The difference between static pipeline and dynamic pipeline
Unity C# 网络学习(四)
mysql5. 7. X data authorization leads to 1141
Summary of MySQL knowledge points
Leetcode -- heuristic search
API slow interface analysis
Unity C e-learning (IV)
QPushbutton 槽函数被多次触发
Leetcode 1547: minimum cost of cutting sticks