public Method

SimpleMarkup.add_special(pattern, name)

Add to other inline sequences. For example, we could add WikiWords using something like:

parser.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)

Each wiki word will be presented to the output formatter via the accept_special method

Source Code

# File rdoc/markup/simple_markup.rb, line 239
def add_special(pattern, name)
  @am.add_special(pattern, name)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.