FEATURE: new site setting 'code formatting style'

This commit is contained in:
Arpit Jalan
2016-06-27 00:00:45 +05:30
parent 800081f606
commit 83309752ae
5 changed files with 26 additions and 12 deletions

View File

@@ -1055,6 +1055,7 @@ en:
quote_text: "Blockquote"
code_title: "Preformatted text"
code_text: "indent preformatted text by 4 spaces"
paste_code_text: "type or paste code here"
upload_title: "Upload"
upload_description: "enter upload description here"
olist_title: "Numbered List"

View File

@@ -1315,6 +1315,8 @@ en:
auto_close_messages_post_count: "Maximum number of posts allowed in a message before it is automatically closed (0 to disable)"
auto_close_topics_post_count: "Maximum number of posts allowed in a topic before it is automatically closed (0 to disable)"
code_formatting_style: "Code button in composer will default to this code formatting style"
default_email_digest_frequency: "How often users receive summary emails by default."
default_include_tl0_in_digests: "Include posts from new users in summary emails by default. Users can change this in their preferences."
default_email_private_messages: "Send an email when someone messages the user by default."

View File

@@ -511,6 +511,13 @@ posting:
min: 0
auto_close_messages_post_count: 500
auto_close_topics_post_count: 10000
code_formatting_style:
client: true
type: enum
default: '4-spaces-indent'
choices:
- 4-spaces-indent
- code-fences
email:
email_time_window_mins: