What are the steps I need to take to add nice java code formatting to my blogger/blogspot blog? [closed]

主宰稳场 提交于 2019-12-04 14:21:37

问题


I'm looking for a sequence of steps to add java code formatting to my blogspot blog.

I'm really looking for a dummies guide - something so simple a cleaner could follow it if they found it on a piece of paper on the floor.


回答1:


I use Google prettify script (StackOverflow uses it also), here you can find a good guide for using it with blogger:

  • Source code high-light in Blogger

You have other alternatives like SyntaxHighlighter, here also you can find a guide to use it with blogger (or any other blogging software)




回答2:


Take a look at Syntax Highlighter, also on google code, Java is one of the many supported languages

http://code.google.com/p/syntaxhighlighter/

here is a post from Scott Hanselman on how to install and use: http://www.hanselman.com/blog/BestCodeSyntaxHighlighterForSnippetsInYourBlog.aspx




回答3:


How about SyntaxHighlighter?

SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.

Support:

ActionScript3 Bash/shell ColdFusion C# C++ CSS Delphi Diff Erlang Groovy JavaScript Java JavaFX Perl PHP Plain Text PowerShell Python Ruby Scala SQL Visual-Basic XML

http://alexgorbatchev.com/SyntaxHighlighter - home page



来源:https://stackoverflow.com/questions/395630/what-are-the-steps-i-need-to-take-to-add-nice-java-code-formatting-to-my-blogger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!