使用语法高亮显示代码? [英] Printing code with syntax highlighting?

查看:95
本文介绍了使用语法高亮显示代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时需要打印代码(Horrors !!!;)),我想知道我将使用哪种编辑器或工具通过适当的格式和语法突出显示来打印该代码?如果重要的话,它将是c#代码,但理想情况下,该工具将适用于尽可能多的语言。记事本++可以处理吗?

I have occasion to need to print code (Horrors!!! ;) ), and i was wondering what editor or tool would i use to print that code out with proper formatting and syntax highlighting? If it's important, it will be c# code but ideally the tool will work for as many languages as possible. Can Notepad++ or something handle this?

推荐答案

是的,记事本++当然可以打印带有语法突出显示的代码。

Yes, Notepad++ can certainly print code with syntax highlighting.

显然,彩色打印会更可取,但是在我用黑白打印时,颜色的细微差异(当然会呈现为灰色阴影)可能很难区分。

Colour printing would obviously be preferable, but on the occasions when I've printed in black and white, the subtle differences in colour [rendered as shades of grey, of course] can be difficult to distinguish.

不过,我认为对配色方案进行一些自定义应该可以解决这个问题。

However, I think a little customisation of the colour schemes should make this less of a problem.

这篇关于使用语法高亮显示代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆