@@ -162,12 +162,21 @@ function get_settings_fields(): array {
162
162
'codemirror ' => 'indentUnit ' ,
163
163
'min ' => 0 ,
164
164
],
165
+ 'font_size ' => [
166
+ 'name ' => __ ( 'Font Size ' , 'code-snippets ' ),
167
+ 'type ' => 'number ' ,
168
+ 'label ' => _x ( 'px ' , 'unit ' , 'code-snippets ' ),
169
+ 'codemirror ' => 'fontSize ' ,
170
+ 'min ' => 8 ,
171
+ 'max ' => 28 ,
172
+ ],
165
173
'wrap_lines ' => [
166
174
'name ' => __ ( 'Wrap Lines ' , 'code-snippets ' ),
167
175
'type ' => 'checkbox ' ,
168
176
'label ' => __ ( 'Soft-wrap long lines of code instead of horizontally scrolling. ' , 'code-snippets ' ),
169
177
'codemirror ' => 'lineWrapping ' ,
170
178
],
179
+
171
180
'code_folding ' => [
172
181
'name ' => __ ( 'Code Folding ' , 'code-snippets ' ),
173
182
'type ' => 'checkbox ' ,
@@ -216,14 +225,6 @@ function get_settings_fields(): array {
216
225
'options ' => get_editor_theme_list (),
217
226
'codemirror ' => 'theme ' ,
218
227
],
219
- 'font_size ' => [
220
- 'name ' => __ ( 'Code Editor Font Size ' , 'code-snippets ' ),
221
- 'type ' => 'number ' ,
222
- 'label ' => _x ( 'px ' , 'unit ' , 'code-snippets ' ),
223
- 'codemirror ' => 'fontSize ' ,
224
- 'min ' => 8 ,
225
- 'max ' => 28 ,
226
- ],
227
228
];
228
229
229
230
$ fields = apply_filters ( 'code_snippets_settings_fields ' , $ fields );
0 commit comments