views:

176

answers:

3

I forgotten the name of this library. But it's sort of like Wiki how you type certain characters in front of your text, and then it'll make the text bold/italic/underline.

I'm not asking for the way Wiki is formatted but I'm aware there is something similar built into Rails. It's at the tip of my tongue. Thanks.

A: 

Many of these are implemented in Ruby:

Comparison of lightweight markup languages

I like Markdown, through RDiscount.

Daniel Straight
A: 

RedCloth does this. It gives you textile markup (which is among the markup languages listed in Daniel's answer).

http://redcloth.org/

Andreas
+1  A: 

Are you looking for the textilize view helper? In your view, just say:

<%= textilize( post.body_text ) %>
austinfromboston