# Prevent Textile from escaping pre tag

**URL:** <https://www.ruby-forum.com/t/prevent-textile-from-escaping-pre-tag/139786>\
**Category:** Rails\
**Created:** [June 6, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/prevent-textile-from-escaping-pre-tag/139786 "2008-06-06T23:53:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [June 6, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/prevent-textile-from-escaping-pre-tag/139786/1 "2008-06-06T23:53:14Z")

</div>

I am using acts\_as\_textiled to format blog entries stored in my db. I  
would like to include properly formated ruby code snippets in my entries  
using the pre tag to get the correct spacing. However, a pre tag causes  
textile to escape html. Is there any way to prevent this? Anyone have a  
trick to format ruby code without pre tags?

Thanks,

Peter

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [June 8, 2008, 6:08am UTC](https://www.ruby-forum.com/t/prevent-textile-from-escaping-pre-tag/139786/2 "2008-06-08T06:08:53Z")

</div>

After some digging, I found exactly what I was looking for:  
…
