ecode: Added support for indentation guides. Closes SpartanJ/ecode#36.

This commit is contained in:
Martín Lucas Golini
2023-02-09 00:36:49 -03:00
parent 4fa35ffa83
commit 2689e0285b
6 changed files with 80 additions and 3 deletions

View File

@@ -1656,6 +1656,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
editor->setShowLineNumber( config.showLineNumbers );
editor->setShowWhitespaces( config.showWhiteSpaces );
editor->setShowLineEndings( config.showLineEndings );
editor->setShowIndentationGuides( config.showIndentationGuides );
editor->setHighlightMatchingBracket( config.highlightMatchingBracket );
editor->setVerticalScrollBarEnabled( config.verticalScrollbar );
editor->setHorizontalScrollBarEnabled( config.horizontalScrollbar );
@@ -1950,7 +1951,7 @@ UIMessageBox* App::newInputMsgBox( const String& title, const String& msg ) {
static void fsRenameFile( const std::string& fpath, const std::string& newFilePath ) {
#if EE_PLATFORM == EE_PLATFORM_WIN
fs::rename( String( fpath ).toWideString(), String(newFilePath).toWideString() );
fs::rename( String( fpath ).toWideString(), String( newFilePath ).toWideString() );
#else
fs::rename( fpath, newFilePath );
#endif