Added an option to treat .h files as C++ code/syntax.

This commit is contained in:
Martín Lucas Golini
2023-05-10 08:01:16 -03:00
parent 25c45ae1a4
commit 31567eb8a4
7 changed files with 37 additions and 11 deletions

View File

@@ -2193,6 +2193,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
UITab* tab = (UITab*)editor->getData();
tab->setIcon( icon->getSize( mMenuIconSize ) );
}
editor->getDocument().setHAsCpp( mProjectDocConfig.hAsCPP );
};
auto docLoaded = [this, editor, docChanged]( const Event* event ) {