diff -r be378821131e -r 07ed3d73bf58 eric6/QScintilla/Editor.py --- a/eric6/QScintilla/Editor.py Thu Nov 14 19:39:07 2019 +0100 +++ b/eric6/QScintilla/Editor.py Tue Nov 19 18:53:58 2019 +0100 @@ -1740,7 +1740,7 @@ filename, self.text(0), self) language = "Python{0}".format(pyVer) if language in ['Python2', 'Python3', 'MicroPython', 'Ruby', - 'JavaScript']: + 'JavaScript', 'YAML', 'JSON']: self.filetype = language else: self.filetype = ""