Stellarium
23.4
|
This class is used to colorize the ECMAScript syntax elements in the Scripting Console. More...
#include <StelScriptSyntaxHighlighter.hpp>
Public Member Functions | |
StelScriptSyntaxHighlighter (QTextDocument *parent=Q_NULLPTR) | |
void | setFormats (void) |
Protected Member Functions | |
virtual void | highlightBlock (const QString &text) Q_DECL_OVERRIDE |
This class is used to colorize the ECMAScript syntax elements in the Scripting Console.
It marks keywords, function names, literals, etc. All StelModules and public slots from StelModules are colorized. Single non-module objects registered with the StelScriprMgr are not highlighted, but their methods are.