From e8ffc10abf0078ef927362c48415c795f009f42d Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 25 Feb 2024 17:32:35 +0100 Subject: [PATCH] Added more file formats to the Text Editor's Save Dialog. --- editor_modules/text_editor/text_file_editor.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/editor_modules/text_editor/text_file_editor.cpp b/editor_modules/text_editor/text_file_editor.cpp index 80b19f336..ccb5db9d0 100644 --- a/editor_modules/text_editor/text_file_editor.cpp +++ b/editor_modules/text_editor/text_file_editor.cpp @@ -588,9 +588,19 @@ TextFileEditor::TextFileEditor() { EXTENSIONS.push_back("*.csv ; Comma-separated values"); EXTENSIONS.push_back("*.cfg ; Configuration File"); EXTENSIONS.push_back("*.ini ; Initialization File (same as .cfg Configuration File)"); - EXTENSIONS.push_back("*.csv ; Comma-separated values File"); EXTENSIONS.push_back("*.res ; Resource File"); - + EXTENSIONS.push_back("*.yml ; YAML File"); + EXTENSIONS.push_back("*.yaml ; YAML File"); + EXTENSIONS.push_back("*.toml ; TOML File"); + EXTENSIONS.push_back("*.htm ; HTML File"); + EXTENSIONS.push_back("*.js ; Javascript File"); + EXTENSIONS.push_back("*.css ; Cascading Style Sheets"); + EXTENSIONS.push_back("*.phtpl ; Pandemonium HTML Template Data File"); + EXTENSIONS.push_back("*.sh ; Bash Script"); + EXTENSIONS.push_back("*.bat ; Windows batch File"); + EXTENSIONS.push_back("*.ps1 ; Powershell File"); + EXTENSIONS.push_back("*.pxml ; Non-translation xml."); + current_file_index = -1; save_as = false; current_editor = NULL;