Re: [racket-users] colorizing code in html - scribble or the GUI?
thanks folks - marked completed but please share more if there are more I was going to use hilite.me but I prefer having something resembling the racket documents -- 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.
Re: [racket-users] colorizing code in html - scribble or the GUI?
You can also submit the code to pasterack.org, which uses the scribble css. Each paste page also gives the html source of the code and output on the side, which you can copy to anywhere you want. On Tue, Mar 15, 2016 at 7:11 PM, Sanjeev Sharma wrote: > is there a quick & dirty way to use scribble or the drracket GUI to generate > html for random code snippets? > > -- > 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. -- 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.
Re: [racket-users] colorizing code in html - scribble or the GUI?
On Mar 15, 2016, at 4:11 PM, Sanjeev Sharma 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.