尝试从 TextMate 打印彩色源代码 - “无法找到您的主题文件!”
我正在尝试使用 TextMate 中的语法着色打印一些 Java 源代码,推荐的方法似乎是首先从源代码生成 HTML。但是,当我选择捆绑时 -->文本伴侣 -->从文档创建 HTML,消息“无法找到您的主题文件!”出现。甚至不知道什么是“主题文件”,我非常不知道如何解决这个问题。任何帮助将不胜感激。
谢谢!
I'm trying to print some Java source code with syntax coloring from TextMate, and the recommended way to do that seems to be to generate HTML from the source first. However, when I choose Bundles --> TextMate --> Create HTML from document, the message "Could not locate your theme file!" appears. Not even knowing what a "theme file" is, I'm pretty lost as to how I can fix this. Any help would be appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,所以我(想我)明白了。进入首选项 -->字体和颜色并选择“Mac Classic”颜色主题(顺便说一句,已经选择了)似乎重新创建了所缺少的内容。 HTML 生成现在工作正常。
Ok, so I (think I) figured it out. Going into Preferences --> Fonts & Colors and selecting the "Mac Classic" color theme (which was already selected, BTW) seemingly recreated whatever it was that was missing. HTML generation now works fine.
有时,textmate 不能很好地进行彩色打印(使用 HTML)。您可以使用 xcode 打印该文件。只要记住打印时选择主题即可。
Sometimes textmate does not work very well with colored printing(using HTML). You can use xcode to print the file. Just remember to choose the theme when printing.
所以我将给出最简单的答案,因为它对我有用(OSX Monterey 12.6,Textmate 版本 2.0.23)
只需打印它。它将以彩色打印。
我不认为它曾经那样工作,但对我来说,现在它没有任何修改
So I'm going to give the simplest possible answer because it worked for me (OSX Monterey 12.6, Textmate version 2.0.23)
Just print it. It will print it in color.
I don't think it used to just work like that, but for me, now it does with no modifications whatsoever