tag:blogger.com,1999:blog-5428232882395758357.post1653445752893486116..comments2016-06-20T17:16:19.739-04:00Comments on more indirection: Haskell Syntax Highlighting for BlogsMore Indirectionhttp://www.blogger.com/profile/09749479501125035513noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5428232882395758357.post-21971912913051963122012-06-15T12:39:10.162-04:002012-06-15T12:39:10.162-04:00Following Eric@Typlab's suggestion (thanks!), ...Following Eric@Typlab's suggestion (thanks!), I'm using CodeColorer with Wordpress 3.3 and it works beautifully.<br /><br />-- Ivan @ Keera Studios<br /><br />PS. I know that this is an old thread, but it's still the first result when you google "haskell wordpress code highlighting".Ivan P. D.https://www.blogger.com/profile/07996401292031163041noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-3598584423255616062010-09-15T06:30:35.497-04:002010-09-15T06:30:35.497-04:00I use SHJS to highlight Haskell syntax with JavaSc...I use SHJS to <a href="http://nix-tips.blogspot.com/2010/09/javascript-highlighter-for-haskell-code.html" rel="nofollow">highlight Haskell syntax with JavaScript</a>. It highlights more correctly than google-code-prettify.<br /><br />http://nix-tips.blogspot.com/2010/09/javascript-highlighter-for-haskell-code.htmlSergeyhttps://www.blogger.com/profile/00441172787160329883noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-56135535893169580262010-09-06T22:37:54.655-04:002010-09-06T22:37:54.655-04:00I write my blog posts (http://randomagent.wordpres...I write my blog posts (http://randomagent.wordpress.com) in emacs with org-mode. When editing code, org-mode gives control to the major mode associated with that language. <br /><br />Then, when you export your text to html to past on your favourite blog manager, org-mode uses the adequate major mode to highlight your code and export the right html code for the colors.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-47305206468389013852010-08-28T00:40:16.944-04:002010-08-28T00:40:16.944-04:00Sigh... Sorry for triple posting, but I don't ...Sigh... Sorry for triple posting, but I don't see an edit button: You'll need to add one more script include to this file: http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs.js<br /><br />and also follow the instructions there for posting.Anonymoushttps://www.blogger.com/profile/00649400936159605312noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-52587315481282504782010-08-28T00:38:04.849-04:002010-08-28T00:38:04.849-04:00Followup: Actually, these instructions for getting...Followup: Actually, these instructions for getting Blogger to use Google's code prettify work on my blog: http://lukabloga.blogspot.com/2008/10/to-test-new-highlighting.html<br /><br />Best of luck!Anonymoushttps://www.blogger.com/profile/00649400936159605312noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-9466493109622397572010-08-27T23:47:31.154-04:002010-08-27T23:47:31.154-04:00Google's code-prettify looks to support Haskel...Google's code-prettify looks to support Haskell but I haven't used it myself (yet): http://code.google.com/p/google-code-prettify/Anonymoushttps://www.blogger.com/profile/00649400936159605312noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-55366848415236082032010-08-25T17:19:54.438-04:002010-08-25T17:19:54.438-04:00You can also use "Highlight" executable ...You can also use "Highlight" executable that is optional with highlighting-kate:<br /><br />cabal install highlighting-kate -fexecutableTenerhttps://www.blogger.com/profile/06657309948578892831noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-42229087284491629632010-08-25T07:01:02.041-04:002010-08-25T07:01:02.041-04:00For my blog, I ran the code through hscolour and g...For my blog, I ran the code through hscolour and generate html output and then I added the CSS classes to my blog template.Rafael Gustavohttps://www.blogger.com/profile/04509485078505005220noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-63010697920114337322010-08-25T06:20:09.192-04:002010-08-25T06:20:09.192-04:00We [1] use code colorer [2], a WordPress plugin ap...We [1] use code colorer [2], a WordPress plugin apparently based on GeSHi [3]. It's basic, but works well and supports other languages as well.<br /><br />[1] https://blog.typlab.com/<br />[2] http://wordpress.org/extend/plugins/codecolorer/<br />[3] http://qbnz.com/highlighter/Erikhttps://www.blogger.com/profile/02568689299691204801noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-34339168311027357382010-08-25T02:01:45.610-04:002010-08-25T02:01:45.610-04:00Use pandoc and make sure to "cabal install&qu...Use pandoc and make sure to "cabal install" it with the "-f highlighting" option -- you can then highlight code using the syntax:<br /><br /> ~~~~~~~~~~ {.haskell}<br /> foo :: Int -> Int<br /> foo = (+2)<br /> ~~~~~~~~~~<br /><br />This is the most convenient way I've found.Unknownhttps://www.blogger.com/profile/12757268515031054537noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-31021328433328251522010-08-25T01:27:44.334-04:002010-08-25T01:27:44.334-04:00See this [1] or this [2]
[1]: http://greayer.word...See this [1] or this [2]<br /><br />[1]: http://greayer.wordpress.com/2009/10/26/blogging-literately-in-haskell/<br />[2]: http://pgraycode.wordpress.com/2010/07/28/enter-hacoteb/Anonymoushttps://www.blogger.com/profile/05340322713209271913noreply@blogger.com