RedPanda-CPP/RedPandaIDE/HighlighterManager.h

20 lines
534 B
C
Raw Normal View History

2021-05-26 00:04:20 +08:00
#ifndef HIGHLIGHTERMANAGER_H
#define HIGHLIGHTERMANAGER_H
#include "qsynedit/highlighter/base.h"
class HighlighterManager
{
public:
HighlighterManager();
2021-06-07 11:02:03 +08:00
PSynHighlighter getHighlighter(const QString& filename);
2021-06-20 22:54:16 +08:00
PSynHighlighter copyHighlighter(PSynHighlighter highlighter);
2021-06-07 11:02:03 +08:00
PSynHighlighter getCppHighlighter();
2021-07-02 10:32:29 +08:00
PSynHighlighter getAsmHighlighter();
2021-06-20 22:54:16 +08:00
void applyColorScheme(PSynHighlighter highlighter, const QString& schemeName);
2021-05-26 00:04:20 +08:00
};
extern HighlighterManager highlighterManager;
#endif // HIGHLIGHTERMANAGER_H