forked from qt-creator/qt-creator
TextEditor: add highlighter configure based on mimetype
The default implementation configures the generic highlighter based on the documents file name and content. Add a way to force the highlighter to use a highlight definition for a specific mime type. Change-Id: I1c6fca1be9bcb5c4276b5aa2dbb724680fe98ddc Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -457,7 +457,11 @@ public:
|
||||
/// Abort code assistant if it is running.
|
||||
void abortAssist();
|
||||
|
||||
/// Overwrite the current highlighter with a new generic highlighter based on the mimetype of
|
||||
/// the current document
|
||||
void configureGenericHighlighter();
|
||||
/// Overwrite the current highlighter with a new generic highlighter based on the given mimetype
|
||||
void configureGenericHighlighter(const Utils::MimeType &mimeType);
|
||||
|
||||
Q_INVOKABLE void inSnippetMode(bool *active); // Used by FakeVim.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user