code: function _updateLanguageInfo(editor) {
          var doc = editor.document,
              lang = doc.getLanguage();
  
          // Show the current language as button title
          languageSelect.$button.text(lang.getName());
      }
docs: Update file mode
  @param {Editor} editor Current editor