# .rb to .html - syntax higlighting

**URL:** <https://www.ruby-forum.com/t/rb-to-html-syntax-higlighting/150595>\
**Category:** Ruby\
**Created:** [October 10, 2008, 9:37am UTC](https://www.ruby-forum.com/t/rb-to-html-syntax-higlighting/150595 "2008-10-10T09:37:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [October 10, 2008, 9:37am UTC](https://www.ruby-forum.com/t/rb-to-html-syntax-higlighting/150595/1 "2008-10-10T09:37:26Z")

</div>

hello.

is there an easy way to generate nice colored .html form .rb? something  
like [railscasts.com](http://railscasts.com) have on their pages.

thanks.

---

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [October 10, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/rb-to-html-syntax-higlighting/150595/2 "2008-10-10T12:12:06Z")

</div>

Frantisek P. wrote:

> hello.
> 
> is there an easy way to generate nice colored .html form .rb? something  
> like [railscasts.com](http://railscasts.com) have on their pages.
> 
> thanks.

[http://www.google.com/search?q=ruby+syntax+highlighting+html](http://www.google.com/search?q=ruby+syntax+highlighting+html)  
gives several options

[http://www.google.com/search?q=railscasts+syntax+highlighting](http://www.google.com/search?q=railscasts+syntax+highlighting)  
 →   
[http://r00tyfruit.com/blog/posts/2-syntax-highlighting-ultraviolet-vs-coderay](http://r00tyfruit.com/blog/posts/2-syntax-highlighting-ultraviolet-vs-coderay)  
This page says that railcasts uses CodeRay  
[http://www.google.com/search?q=Coderay](http://www.google.com/search?q=Coderay)

HTH

Rich

---

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [October 10, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/rb-to-html-syntax-higlighting/150595/3 "2008-10-10T14:09:04Z")

</div>

On Oct 10, 3:35 am, Frantisek P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> hello.
> 
> is there an easy way to generate nice colored .html form .rb? something  
> like [railscasts.com](http://railscasts.com) have on their pages.

[http://shjs.sourceforge.net/](http://shjs.sourceforge.net/)

[http://coderay.rubychan.de/](http://coderay.rubychan.de/)

T.
