格式化用于博客发布的Eclipse代码段吗? [英] Format Eclipse code snippets for blog publishing?
问题描述
Visual Studio has a plugin that allows one to copy code from any editor (C#, HTML, XML) and then paste it with HTML formatting that preserves the syntax highlighting, etc.
这对于将代码示例/示例发布到wep页面/博客非常方便.我见过一个旧的(2006?)插件,可以将Java转换为html,但是还有其他更广泛的解决方案,类似于Visual Studio插件.
This is very handy for publishing code samples/examples to a wep page/blog. I have seen one old (2006?) plugin for java to html conversion, but are there any broader solutions similar to the Visual studio plugin.
我真正想要的是一种在Eclipse中选择并复制语法彩色的文本块并将其粘贴为格式化的html + css的方法.
Really what I am looking for is a way to select and copy a syntax-colored block of text in Eclipse and paste it as formatted html+css.
这样的东西存在吗?
推荐答案
基于Eclipse的解决方案
使用 Java2Html 插件(这可能是您所指的插件):
Eclipse based solutions
Use the Java2Html plugin (this is maybe the plugin you were referring to):
此工具可通过突出显示语法将Java源代码转换为HTML,XHTML和LaTeX.
This tool converts Java source code to HTML, XHTML and LaTeX with syntax highlighting.
还有 CodeSnippet 插件:
CodeSnippet是一组Eclipse插件,可将Ant,Java,Properties,CSS,DTD,HTML和XML源代码(完整的文件或摘录)转换为具有语法高亮显示的HTML
CodeSnippet is a set of Eclipse plug-ins to convert Ant, Java, Properties, CSS, DTD, HTML, and XML source code (complete files or snippets) to HTML with syntax highlighting
基于非Eclipse
使用在线 Blogger,Blogspot,Blog和amp的源代码格式化程序;博客,格式设置工具:
Blogger和网站的源代码美化器和格式化程序,格式化源代码,格式化博客或博客的源代码,以及网站,在线行源代码格式化工具,博客代码格式化工具,为Blogspot格式化源代码,插入格式化的源代码
Source Code Beautifier And Formatter For Blogger and Websites, Format Source Code , Format Source code for blog or blogging & website, Online line source code formatter tool, blogger code format tool, Format source code for blogspot,Insert formatted source code
这篇关于格式化用于博客发布的Eclipse代码段吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!