typeahead: Advertise default codeblock language.

This commit is contained in:
Rohitt Vashishtha 2020-05-12 23:36:38 +05:30 committed by Tim Abbott
parent 7e9024a39c
commit 12836d6f0a
1 changed files with 7 additions and 0 deletions

View File

@ -920,6 +920,13 @@ function get_header_text() {
case 'silent_mention':
tip_text = i18n.t('User will not be notified');
break;
case 'syntax':
if (page_params.realm_default_code_block_language !== '') {
tip_text = i18n.t("Default is __language__. Use 'text' to disable highlighting.",
{language: page_params.realm_default_code_block_language});
break;
}
return false;
default:
return false;
}