Module: Card::Set::Abstract::Script::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod014-machines/abstract/script.rb
Instance Method Summary collapse
- #ace_mode ⇒ Object
- #content_changes(action, diff_type, hide_diff = false) ⇒ Object
- #editor ⇒ Object
- #highlight(script) ⇒ Object
Instance Method Details
#ace_mode ⇒ Object
71 72 73 |
# File 'tmpsets/set/mod014-machines/abstract/script.rb', line 71 def ace_mode :javascript end |
#content_changes(action, diff_type, hide_diff = false) ⇒ Object
75 76 77 |
# File 'tmpsets/set/mod014-machines/abstract/script.rb', line 75 def content_changes action, diff_type, hide_diff=false wrap_with(:pre) { super } end |
#editor ⇒ Object
67 68 69 |
# File 'tmpsets/set/mod014-machines/abstract/script.rb', line 67 def editor :ace_editor end |
#highlight(script) ⇒ Object
84 85 86 |
# File 'tmpsets/set/mod014-machines/abstract/script.rb', line 84 def highlight script ::CodeRay.scan(script, :js).div end |