mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
typeahead: Advertise default codeblock language.
This commit is contained in:
committed by
Tim Abbott
parent
7e9024a39c
commit
12836d6f0a
@@ -920,6 +920,13 @@ function get_header_text() {
|
|||||||
case 'silent_mention':
|
case 'silent_mention':
|
||||||
tip_text = i18n.t('User will not be notified');
|
tip_text = i18n.t('User will not be notified');
|
||||||
break;
|
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:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user