当前位置:网站首页>如何在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
边栏推荐
- TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
- Sword finger offer: symmetric binary tree (recursive iteration leetcode 101)
- 【数据库】表的查看、修改和删除
- [database] MySQL basic operation (basic operation ~)
- TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
- 2022/4/22
- MySQL circularly adds sequence numbers according to the values of a column
- 直播带货表格模板-自动显示图片-自动关联系列商品
- Chapter III project schedule management of information system project manager summary
- Luogu p2731 horse riding fence repair
猜你喜欢
One month countdown, pgconf What are the highlights of the latest outlook of asia2021 Asian Conference?
Field injection is not recommended using @ Autowired
Learning Android V from scratch - UI
Thoughts on a small program
DIY is an excel version of subnet calculator
Define defines constants and macros, pointers and structures
Unique primary key ID of tidb sub table -- solution to failure of sequence and Gorm to obtain primary key
Cross border e-commerce | Facebook and instagram: which social media is more suitable for you?
深度学习笔记 —— 物体检测和数据集 + 锚框
Where, on when MySQL external connection is used
随机推荐
Details related to fingerprint payment
【数据库】MySQL单表查询
Graduation project
Spell it! Two A-level universities and six B-level universities have abolished master's degree programs in software engineering!
Sword finger offer: push in and pop-up sequence of stack
Deep learning notes - data expansion
Transaction isolation level of MySQL transactions
静态流水线和动态流水线的区别认识
A trinomial expression that causes a null pointer
How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
DIY 一个 Excel 版的子网计算器
Logrus set log format and output function name
深度学习笔记 —— 语义分割和数据集
What are instruction cycles, machine cycles, and clock cycles?
[2021] Spatio-Temporal Graph Contrastive Learning
JS engine loop mechanism: synchronous, asynchronous, event loop
C. Tree infection (simulation + greed)
How does PostgreSQL parse URLs
Analysis of POM files
Informatics Aosai yibentong 1212: letters | openjudge 2.5 156: Letters