eye.helpers.lexer module¶
Automatic syntax coloring plugin
This plugins adds automatic syntax coloring in an editor based on file extension. See eye.lexers module.
Simple usage:
>>> import eye.helpers.lexer
>>> eye.helpers.lexer.set_enabled(True)
- eye.helpers.lexer.auto_lexer(editor, path=None)[source]¶
Enables syntax coloring for an editor
The correct lexer is determined using file extension. See
eye.lexers.extensionToLexer
.This handler is disabled by default.
This handler is registered for categories
['editor']
on signalfile_saved
.This handler is registered for categories
['editor']
on signalfile_opened
.