htmleclipseblogscode-snippetscopy-paste

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.

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.

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.

Does such a thing exist?


Solution

  • Eclipse based solutions

    Use the Java2Html plugin (this is maybe the plugin you were referring to):

    This tool converts Java source code to HTML, XHTML and LaTeX with syntax highlighting.

    There is also the CodeSnippet plugin:

    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

    Non Eclipse based

    Use the online Source Code Formatter for Blogger, Blogspot, Blog & Blogging, Format Formatting Tool:

    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