当前位置:网站首页>如何在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
边栏推荐
- 【数据库】表的查看、修改和删除
- In aggregated query without group by, expression 1 of select list contains nonaggregated column
- Differences between redis and MySQL
- 什么是指令周期,机器周期,和时钟周期?
- What are instruction cycles, machine cycles, and clock cycles?
- Wine (COM) - basic concept
- Machine learning - linear regression
- Redis persistence
- Detailed explanation of the differences between TCP and UDP
- Detailed explanation of hregionserver
猜你喜欢
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
[database] MySQL multi table query (I)
Wine (COM) - basic concept
Nacos source code startup error report solution
Data security has become a hidden danger. Let's see how vivo can make "user data" armor again
深度学习笔记 —— 物体检测和数据集 + 锚框
[WinUI3]編寫一個仿Explorer文件管理器
2022/4/22
Jupyter notebook crawling web pages
MySQL external connection, internal connection, self connection, natural connection, cross connection
随机推荐
Use the built-in function of win to transfer files between two computers in the same LAN (the speed is the same as that between local disks)
Tensorflow realizes web face login system
Backup MySQL database with Navicat
Day.js 常用方法
静态流水线和动态流水线的区别认识
Sword finger offer: symmetric binary tree (recursive iteration leetcode 101)
Learning Android from scratch -- baseactivity and activitycollector
Analysis of POM files
多线程基本概念(并发与并行、线程与进程)和入门案例
MySQL external connection, internal connection, self connection, natural connection, cross connection
Informatics Olympiad 1955: [11noip popularization group] Swiss round | openjudge 4.1 4363: Swiss round | Luogu p1309 [noip2011 popularization group] Swiss round
Define defines constants and macros, pointers and structures
[winui3] write an imitation Explorer file manager
Streamexecutionenvironment of Flink source code
AQS source code reading
Deep learning notes - data expansion
MySQL basics 3
How does PostgreSQL parse URLs
L2-011 play binary tree (build tree + BFS)
Grpc long connection keepalive