From a563a8b812c843279879986e84fdc312a25f0b9d Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 24 Dec 2021 02:23:50 +0100 Subject: [PATCH] Open "crontab" file by using syntax highlighting of bash Fix #3377, close #10943 --- PowerEditor/src/ScintillaComponent/Buffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index d8c11371f..339608dc9 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -222,6 +222,8 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang) newLang = L_PYTHON; else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Rakefile")) == 0) || (OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Vagrantfile")) == 0)) newLang = L_RUBY; + else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("crontab")) == 0)) + newLang = L_BASH; } updateTimeStamp();