# Extending textile

**URL:** <https://www.ruby-forum.com/t/extending-textile/136571>\
**Category:** Radiant CMS\
**Created:** [May 3, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/extending-textile/136571 "2008-05-03T20:08:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 3, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/extending-textile/136571/1 "2008-05-03T20:08:29Z")

</div>

Hello,

I want to extend textile for using

 tags just like 

es

I mean I want to do something like that:

div(css-class). and this is content

Please let me know if you know some workaround.

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 3, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/extending-textile/136571/2 "2008-05-03T20:20:13Z")

</div>

Why not just do

? Textile will ignore the  
tag.

Sean

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 3, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/extending-textile/136571/3 "2008-05-03T20:35:36Z")

</div>

I can do that but not everyone can do… I need to simplify it

I can do with %(css-class) what I want but It really would be better off  
the  
way I asked…

btw, looks like brand new RedCloth baked:  
[http://hackety.org/2008/03/20/jasonGarberFinishesSuperRedClothForMe.html](http://hackety.org/2008/03/20/jasonGarberFinishesSuperRedClothForMe.html)

is there a way we can do it? coz although I am no expert I reviewed the  
code  
and I could include what I want atm

[http://github.com/jgarber/redcloth/tree/master/lib/formatters/html.rb](http://github.com/jgarber/redcloth/tree/master/lib/formatters/html.rb)

thank you…

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 3, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/extending-textile/136571/4 "2008-05-03T23:55:25Z")

</div>

well, i achieved what i want :))

i followed the steps sean and jason pointed

config.load\_paths.unshift “/path/to/gems/RedCloth-3.2.9.0/lib”

[http://lists.radiantcms.org/pipermail/radiant/2008-April/008358.html](http://lists.radiantcms.org/pipermail/radiant/2008-April/008358.html)

plus line breaks also work charmly now

i use redcloth 3.301,

3.302 gives error:

$ ./script/console  
Loading development environment (Rails 2.0.2)  
irb: symbol lookup error:  
/usr/lib/ruby/gems/1.8/gems/RedCloth-3.302/lib/redcloth\_scan.so:  
undefined  
symbol: red\_block
