On Mar 15, 2016, at 4:11 PM, Sanjeev Sharma <throw...@gmail.com> wrote:
> is there a quick & dirty way to use scribble or the drracket GUI to generate > html for random code snippets? If you have Pygments installed, `pollen/unstable/pygments` and `pollen/template/html` can be used together to colorize code snippets (Racket or otherwise) & convert to HTML. (Your HTML page would also need a Pygments CSS file for the color theme.) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #lang at-exp racket (require pollen/unstable/pygments pollen/template/html) (->html @highlight['racket]{ (define (foo x) (+ x 1)) }) (->html @highlight['python]{ def foo(x): return x + 1 }) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.