- nowrap = (option? 'nowrap') || !(document.attr? 'prewrap') - if @style == 'source' - syntax_hl = document.syntax_highlighter - lang = attr :language - if syntax_hl - doc_attrs = document.attributes - css_mode = (doc_attrs[%(#{syntax_hl.name}-css)] || :class).to_sym - style = doc_attrs[%(#{syntax_hl.name}-style)] - opts = syntax_hl.highlight? ? { css_mode: css_mode, style: style } : {} - opts[:nowrap] = nowrap - else - pre_open = %(
)
    - pre_close = '
' - else - pre_open = %() - pre_close = '' - id_attribute = id ? %( id="#{id}") : '' - title_element = title? ? %(
#{captioned_title}
\n) : '' =%(#{title_element}
#{syntax_hl ? (syntax_hl.format self, lang, opts) : pre_open + (content || '') + pre_close}
)