- nowrap = (option? 'nowrap') || !(document.attr? 'prewrap') - syntax_hl = document.syntax_highlighter - if @style == 'source' - 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? ? %(