TextLinesStore textLinesStore;
textLinesStore.loadFile(inputFileName, inputEncoding, true);
ParserFactory pf(catalogPath);
BaseEditor baseEditor(&pf, &textLinesStore);
baseEditor.setRegionMapper(&DString("rgb"), &DString("default"));
baseEditor.setFileType(DString("cpp"));
baseEditor.lineCountEvent(textLinesStore.getLineCount());
for(int idx = 0; idx < textLinesStore.getLineCount(); idx++){
LineRegions *lr = baseEditor.getLineRegions(idx);
for(LineRegions *next = lr; next != null; lr = lr->next){
StyledRegion *sr = next->styled();
};
};