るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.017秒)
トップページ > クラス:RDoc::Markup[x] > クエリ:text[x] > クエリ:markup[x]

別のキーワード

  1. openssl to_text
  2. prettyprint text
  3. cgi text_field
  4. cgi/html text_field
  5. rexml/document text

ライブラリ

検索結果

RDoc::Markup#add_special(pattern, name) -> () (3031.0)

pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま す。

...規表現にマッチする文字列をフォーマットの対象にしま
す。

例えば WikiWord のような、SM::SimpleMarkup#add_word_pair、
SM::SimpleMarkup#add_html でフォーマットできないものに対して使用
します。

@param pattern 正規表現を指定します。...
...します。

例:

require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'

class WikiHtml < SM::ToHtml
def handle_special_WIKIWORD(special)
"<font color=red>" + special.text + "</font>"
end
end

m = SM::SimpleMarkup.new
m.add_special(/\b([A-Z][a-z]...