Sha256: e97ca3ed9a33234346e5ab15ea3dfebcac79f331ff678da30e69a959014cfdbe

Contents?: true

Size: 930 Bytes

Versions: 5

Compression:

Stored size: 930 Bytes

Contents

= Train BBCode

Rails Gem for BBCode

== Install

=== As a Gem

gem install trainbbcode

For rails you will need to add:

config.gem "trainbbcode"

to config/enviroments.rb

== Optional Requirements

=== Ultraviolet

If you want to use syntax highlighting you will need to install the "ultraviolet" gem

Once you have the gem installed you will need to run:

    uv -s ruby --copy-files css
    gief css filez



== Usage

This adds a method to string of .tbbc which lets you parse the code like this:

  "[b]bold text[/b] and [i]italic[/i]".tbbc

that would output:

  "<strong>bold text</strong> and <i>italic</i>"

Or you can configure it by creating a TBBC object and running "conf"

  tbbc=TBBC.new
  tbbc.config(:strong_enabled => false)
  tbbc.parse("[b]bold text[/b] and [i]italic[/i]")
  
This would output:

  "[b]bold text[/b] and <i>italic</i>"
  
For More information and examples visit http://www.arcath.net/pages/2

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trainbbcode-0.3.1 README.rdoc
trainbbcode-0.3.0 README.rdoc
trainbbcode-0.2.7 README.rdoc
trainbbcode-0.2.6 README.rdoc
trainbbcode-0.2.5 README.rdoc