Re: Clojure Pretty Printing with Blogger
Hi i am trying to pretty a clojure code : my emacs version is 24.3.1 my org file is : #+BEGIN_SRC clojure (defn foo [x] (reverse (let [A (reduce (fn [x y] (if (= (:L x) y) (assoc x :T (conj (:T x) y)) (assoc (assoc (if (:L x) (assoc x :V (conj (:V x) (cons (:L x) (:T x))) ) x) :T nil) :L y ) )) {} x)] (conj (:V A) (cons (:L A) (:T A))) ))) #+END_SRC when i do C-c C-e h o, it open a file which shows code in a block but it is not pretty. On Friday, 25 May 2012 15:37:24 UTC+5:30, Jake Johnson wrote: Hi, guys. Has anyone had any luck with using google-code-prettify http://code.google.com/p/google-code-prettify/ and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.js together on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html%20 , but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure Pretty Printing with Blogger
Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson kognizant@gmail.comwrote: Hi, guys. Has anyone had any luck with using google-code-prettifyhttp://code.google.com/p/google-code-prettify/and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.jstogether on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.htmlhttp://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html%20, but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure Pretty Printing with Blogger
Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I generally use org-mode without exporting). Using org-mode, would my best option just be to type it up, export to html, then copy and paste the resulting html into my blog post? On Sat, May 26, 2012 at 10:46 AM, Denis Labaye denis.lab...@gmail.comwrote: Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson kognizant@gmail.comwrote: Hi, guys. Has anyone had any luck with using google-code-prettifyhttp://code.google.com/p/google-code-prettify/and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.jstogether on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.htmlhttp://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html%20, but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure Pretty Printing with Blogger
Hi C-c C-e b for the HTML export and open into the browser to display the result. Then copy paste the html source yes. Antoine On May 26, 2012 11:42 PM, Jake Johnson kognizant@gmail.com wrote: Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I generally use org-mode without exporting). Using org-mode, would my best option just be to type it up, export to html, then copy and paste the resulting html into my blog post? On Sat, May 26, 2012 at 10:46 AM, Denis Labaye denis.lab...@gmail.comwrote: Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson kognizant@gmail.comwrote: Hi, guys. Has anyone had any luck with using google-code-prettifyhttp://code.google.com/p/google-code-prettify/and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.jstogether on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.htmlhttp://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html%20, but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure Pretty Printing with Blogger
If you don't want to create a whole org-document just for a single export, you can use htmlize-{region,buffer} directly. That's the same command org uses. On Sat, May 26, 2012 at 11:46 PM, eniotna eniotn...@gmail.com wrote: Hi C-c C-e b for the HTML export and open into the browser to display the result. Then copy paste the html source yes. Antoine On May 26, 2012 11:42 PM, Jake Johnson kognizant@gmail.com wrote: Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I generally use org-mode without exporting). Using org-mode, would my best option just be to type it up, export to html, then copy and paste the resulting html into my blog post? On Sat, May 26, 2012 at 10:46 AM, Denis Labaye denis.lab...@gmail.com wrote: Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson kognizant@gmail.com wrote: Hi, guys. Has anyone had any luck with using google-code-prettify and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.js together on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html , but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure Pretty Printing with Blogger
Thanks again, guys! Much appreciated. On Sat, May 26, 2012 at 6:07 PM, Moritz Ulrich ulrich.mor...@googlemail.com wrote: If you don't want to create a whole org-document just for a single export, you can use htmlize-{region,buffer} directly. That's the same command org uses. On Sat, May 26, 2012 at 11:46 PM, eniotna eniotn...@gmail.com wrote: Hi C-c C-e b for the HTML export and open into the browser to display the result. Then copy paste the html source yes. Antoine On May 26, 2012 11:42 PM, Jake Johnson kognizant@gmail.com wrote: Thanks! I didn't realize org-mode would prettify Clojure code when exported to html (I generally use org-mode without exporting). Using org-mode, would my best option just be to type it up, export to html, then copy and paste the resulting html into my blog post? On Sat, May 26, 2012 at 10:46 AM, Denis Labaye denis.lab...@gmail.com wrote: Hi, I don't know google-code-prettify. I am using Emacs with org-mode, it has native support for prettifying Clojure code when exporting to HTML. You could also use GitHub's gist https://gist.github.com/, and embed it in your blog. Denis On Fri, May 25, 2012 at 12:07 PM, Jake Johnson kognizant@gmail.com wrote: Hi, guys. Has anyone had any luck with using google-code-prettify and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.js together on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html, but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Clojure Pretty Printing with Blogger
Hi, guys. Has anyone had any luck with using google-code-prettifyhttp://code.google.com/p/google-code-prettify/and http://google-code-prettify.googlecode.com/svn/trunk/src/lang-clj.jstogether on blogger? I followed http://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.htmlhttp://www.tkglaser.net/2012/03/syntax-highlighting-in-blogger.html%20, but I can't get Clojure to display correctly, at least yet. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en