mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
Open "crontab" file by using syntax highlighting of bash
Fix #3377, close #10943
This commit is contained in:
parent
30c586d94c
commit
a563a8b812
@ -222,6 +222,8 @@ void Buffer::setFileName(const TCHAR *fn, LangType defaultLang)
|
|||||||
newLang = L_PYTHON;
|
newLang = L_PYTHON;
|
||||||
else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Rakefile")) == 0) || (OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Vagrantfile")) == 0))
|
else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Rakefile")) == 0) || (OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("Vagrantfile")) == 0))
|
||||||
newLang = L_RUBY;
|
newLang = L_RUBY;
|
||||||
|
else if ((OrdinalIgnoreCaseCompareStrings(_fileName, TEXT("crontab")) == 0))
|
||||||
|
newLang = L_BASH;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTimeStamp();
|
updateTimeStamp();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user