Class: HighlightScanner

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-editor/ae-editor.rb

Direct Known Subclasses

CoderayHighlightScanner, ReHighlightScanner

Instance Method Summary collapse

Constructor Details

#initialize(_langs_conf) ⇒ HighlightScanner

Returns a new instance of HighlightScanner.



3178
3179
3180
3181
# File 'ext/ae-editor/ae-editor.rb', line 3178

def initialize(_langs_conf)
  @langs_conf = _langs_conf
  @lang=@langs_conf['language'].to_sym if @langs_conf['language']
end

Instance Method Details

#classesObject



3186
3187
3188
3189
3190
3191
# File 'ext/ae-editor/ae-editor.rb', line 3186

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



3183
3184
# File 'ext/ae-editor/ae-editor.rb', line 3183

def highlight_tags(_row_begin,_code)
end