Skip to content

Commit

Permalink
Merge branch 'core' of github.com:codesnippetspro/code-snippets into …
Browse files Browse the repository at this point in the history
…core
  • Loading branch information
sheabunge committed Dec 20, 2024
2 parents 357ab76 + 65cf9cb commit 9fa6400
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/php/settings/settings-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ function get_settings_fields(): array {
// Code Editor settings section.

$fields['editor'] = [
'theme' => [
'name' => __( 'Theme', 'code-snippets' ),
'type' => 'select',
'default' => 'default',
'options' => get_editor_theme_list(),
'codemirror' => 'theme',
],

'indent_with_tabs' => [
'name' => __( 'Indent With Tabs', 'code-snippets' ),
'type' => 'checkbox',
Expand Down Expand Up @@ -217,6 +209,7 @@ function get_settings_fields(): array {
'default' => true,
'codemirror' => 'styleActiveLine',
],

'keymap' => [
'name' => __( 'Keymap', 'code-snippets' ),
'type' => 'select',
Expand All @@ -230,6 +223,14 @@ function get_settings_fields(): array {
],
'codemirror' => 'keyMap',
],

'theme' => [
'name' => __( 'Theme', 'code-snippets' ),
'type' => 'select',
'default' => 'default',
'options' => get_editor_theme_list(),
'codemirror' => 'theme',
],
];

$fields = apply_filters( 'code_snippets_settings_fields', $fields );
Expand Down

0 comments on commit 9fa6400

Please sign in to comment.