Stellarium  HEAD
Data Structures | Public Member Functions | Protected Member Functions
StelScriptSyntaxHighlighter Class Reference

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

void highlightBlock (const QString &text) override
 

Detailed Description

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.