Class: HighlightScanner
- Inherits:
-
Object
- Object
- HighlightScanner
- Defined in:
- ext/ae-editor/ae-editor.rb
Direct Known Subclasses
CoderayHighlightScanner, CoderayHighlightScannerOld, ReHighlightScanner
Instance Method Summary collapse
- #classes ⇒ Object
- #highlight_tags(_row_begin, _code) ⇒ Object
-
#initialize(_langs_conf) ⇒ HighlightScanner
constructor
A new instance of HighlightScanner.
Constructor Details
#initialize(_langs_conf) ⇒ HighlightScanner
Returns a new instance of HighlightScanner.
4079 4080 4081 4082 4083 |
# File 'ext/ae-editor/ae-editor.rb', line 4079 def initialize(_langs_conf) @langs_conf = _langs_conf #@lang=@langs_conf['language'].to_sym if @langs_conf['language'] @lang=@langs_conf['language'] if @langs_conf['language'] end |
Instance Method Details
#classes ⇒ Object
4088 4089 4090 4091 4092 4093 |
# File 'ext/ae-editor/ae-editor.rb', line 4088 def classes if !defined?(@h_classes) @h_classes = @langs_conf["#{@langs_conf['scanner']}.classes"].split(',') end @h_classes end |
#highlight_tags(_row_begin, _code) ⇒ Object
4085 4086 |
# File 'ext/ae-editor/ae-editor.rb', line 4085 def (_row_begin,_code) end |