# How can I paste Rails code into my blog with Textmate style

**URL:** <https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332>\
**Category:** Rails\
**Created:** [December 17, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332 "2009-12-17T17:26:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [December 17, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332/1 "2009-12-17T17:26:41Z")

</div>

I have a blog made on Ruby on Rails and I want to paste some code to  
have an example of doing certain task. I want this code to show like it  
shows on Textmate. How can I do it? I’ll appreciate any help

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [December 17, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332/2 "2009-12-17T17:43:19Z")

</div>

John S. wrote:

> I have a blog made on Ruby on Rails and I want to paste some code to  
> have an example of doing certain task. I want this code to show like it  
> shows on Textmate. How can I do it? I’ll appreciate any help

You’re looking for a plugin that does syntax coloring, I think.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [December 18, 2009, 7:56am UTC](https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332/3 "2009-12-18T07:56:27Z")

</div>

Aldric G. wrote:

> John S. wrote:
> 
> > I have a blog made on Ruby on Rails and I want to paste some code to  
> > have an example of doing certain task. I want this code to show like it  
> > shows on Textmate. How can I do it? I’ll appreciate any help
> 
> You’re looking for a plugin that does syntax coloring, I think.

[http://jquery.com/demo/code/](http://jquery.com/demo/code/)

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [December 18, 2009, 8:02am UTC](https://www.ruby-forum.com/t/how-can-i-paste-rails-code-into-my-blog-with-textmate-style/180332/4 "2009-12-18T08:02:24Z")

</div>

Robert W. wrote:

> Aldric G. wrote:
> 
> > John S. wrote:
> > 
> > > I have a blog made on Ruby on Rails and I want to paste some code to  
> > > have an example of doing certain task. I want this code to show like it  
> > > shows on Textmate. How can I do it? I’ll appreciate any help
> > 
> > You’re looking for a plugin that does syntax coloring, I think.
> 
> [http://jquery.com/demo/code/](http://jquery.com/demo/code/)

This one look interesting too:

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