# Path: basic_editor/editor_base.py
# class BaseExtension:
#     def __init__(self, editor):
#         self.editor = editor
# 
#         self.cfg = editor.cfg
#         self.root = editor.root
#         self.text = editor.text  # ScrolledText() instance
# 
# Path: basic_editor/tkinter_utils.py
# class TkTextTag:
#     _id = 0
# 
#     def __init__(self, text_widget, **config):
#         self.id = self._id
#         self._id += 1
#         text_widget.tag_configure(self.id, config)


import tkinter
import pygments
from tkinter import font
from dragonlib.dragon32.pygments_lexer import BasicLexer
from pygments.styles import get_style_by_name
from basic_editor.editor_base import BaseExtension
from basic_editor.tkinter_utils import TkTextTag
"""
    DragonPy - Dragon 32 emulator in Python
    =======================================

    Some code borrowed from Python IDLE

    :created: 2014 by Jens Diemer - www.jensdiemer.de
    :copyleft: 2014 by the DragonPy team, see AUTHORS for more details.
    :license: GNU GPL v3 or above, see LICENSE for more details.
"""







# Path: basic_editor/editor_base.py
# class BaseExtension:
#     def __init__(self, editor):
#         self.editor = editor
# 
#         self.cfg = editor.cfg
#         self.root = editor.root
#         self.text = editor.text  # ScrolledText() instance
# 
# Path: basic_editor/tkinter_utils.py
# class TkTextTag:
#     _id = 0
# 
#     def __init__(self, text_widget, **config):
#         self.id = self._id
#         self._id += 1
#         text_widget.tag_configure(self.id, config)


# Path: basic_editor/highlighting.py
import tkinter
import pygments
from tkinter import font
from dragonlib.dragon32.pygments_lexer import BasicLexer
from pygments.styles import get_style_by_name
from basic_editor.editor_base import BaseExtension
from basic_editor.tkinter_utils import TkTextTag

"""
    DragonPy - Dragon 32 emulator in Python
    =======================================

    Some code borrowed from Python IDLE

    :created: 2014 by Jens Diemer - www.jensdiemer.de
    :copyleft: 2014 by the DragonPy team, see AUTHORS for more details.
    :license: GNU GPL v3 or above, see LICENSE for more details.
"""







class TkTextHighlighting(BaseExtension):