forked from qt-creator/qt-creator
Allow giving TextEditorFactory custom CommentDefinition
It was not possible to set custom comment styles. Also simplifies the code for the predefined styles. Change-Id: Id7f345d65b747bfac5a15e3eb15cd2beb106b281 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -55,7 +55,7 @@ PythonEditorFactory::PythonEditorFactory()
|
||||
setDocumentCreator([] { return new TextDocument(Constants::C_PYTHONEDITOR_ID); });
|
||||
setIndenterCreator([] { return new PythonIndenter; });
|
||||
setSyntaxHighlighterCreator([] { return new PythonHighlighter; });
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
setCommentDefinition(Utils::CommentDefinition::HashStyle);
|
||||
setParenthesesMatchingEnabled(true);
|
||||
setMarksVisible(true);
|
||||
setCodeFoldingSupported(true);
|
||||
|
||||
Reference in New Issue
Block a user