ui: Extracted syntax highlighting rules for java and cpp to files
* pass file language from storage to code view * load syntax highlighting rules files from install directory "syntax_highlighting_rules" * files must be named <language_identifier>.rules to make syntax highlighting work
This commit is contained in:
@@ -7,6 +7,11 @@ FilePath ResourcePaths::getColorSchemesPath()
|
||||
return AppPath::getAppPath().concatenate(L"data/color_schemes/");
|
||||
}
|
||||
|
||||
FilePath ResourcePaths::getSyntaxHighlightingRulesPath()
|
||||
{
|
||||
return AppPath::getAppPath().concatenate(L"data/syntax_highlighting_rules/");
|
||||
}
|
||||
|
||||
FilePath ResourcePaths::getFallbackPath()
|
||||
{
|
||||
return AppPath::getAppPath().concatenate(L"data/fallback/");
|
||||
|
||||
@@ -9,6 +9,7 @@ class ResourcePaths
|
||||
{
|
||||
public:
|
||||
static FilePath getColorSchemesPath();
|
||||
static FilePath getSyntaxHighlightingRulesPath();
|
||||
static FilePath getFallbackPath();
|
||||
static FilePath getFontsPath();
|
||||
static FilePath getGuiPath();
|
||||
|
||||
Reference in New Issue
Block a user