from typing import List
from typing import Dict


def get_syntax_coloring_dicts(self) -> List[List[Dict]]:
    """
    Converts the text in the editor based on the line_string_list into a list of lists of dicts.
    Every line is one sublist which contains different dicts based on it's contents.

    We create a dict for every token of every line and include the characters, a pseudo token-type and the color.
    """
    rendering_list = []
    for line in self.line_string_list:
        line_dict = self.formatter.format(self.lexer.get_tokens(line))
        rendering_list.append(line_dict)
    return rendering_list