To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / a7 / a7710803d5ef1ace984d544cc34e7fc655530e5c.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (431 Bytes)
| 1 |
module CodeRay |
|---|---|
| 2 |
module Encoders |
| 3 |
|
| 4 |
load :html |
| 5 |
|
| 6 |
# Wraps HTML output into a SPAN element, using inline styles by default. |
| 7 |
# |
| 8 |
# See Encoders::HTML for available options. |
| 9 |
class Span < HTML |
| 10 |
|
| 11 |
FILE_EXTENSION = 'span.html' |
| 12 |
|
| 13 |
register_for :span |
| 14 |
|
| 15 |
DEFAULT_OPTIONS = HTML::DEFAULT_OPTIONS.merge \ |
| 16 |
:css => :style, |
| 17 |
:wrap => :span, |
| 18 |
:line_numbers => false |
| 19 |
|
| 20 |
end |
| 21 |
|
| 22 |
end |
| 23 |
end |