markup_code (Generators::HtmlMethod)

    # File lib/generators/templates/application/merb_stack/doc/rdoc/generators/merb_generator.rb, line 1056
            def markup_code(tokens)
                src = ""
                tokens.each do |t|
                    next unless t
                    #    p t.class
                    #        style = STYLE_MAP[t.class]
                    style = case t
                    when RubyToken::TkCONSTANT then "ruby-constant"
                    when RubyToken::TkKW       then "ruby-keyword kw"
                    when RubyToken::TkIVAR     then "ruby-ivar"
                    when RubyToken::TkOp       then "ruby-operator"
                    when RubyToken::TkId       then "ruby-identifier"
                    when RubyToken::TkNode     then "ruby-node"
                    when RubyToken::TkCOMMENT  then "ruby-comment cmt"
                    when RubyToken::TkREGEXP   then "ruby-regexp re"
                    when RubyToken::TkSTRING   then "ruby-value str"
                    when RubyToken::TkVal      then "ruby-value"
                    else
                        nil
                    end

                    text = CGI.escapeHTML(t.text)

                    if style
                        src << "<span class=\"#{style}\">#{text}</span>"
                    else
                        src << text
                    end
                end

                add_line_numbers(src)
                src
            end