You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ On the front-end when the post is being viewed, the code will be color syntax hi
23
23
24
24
### Colors
25
25
26
-
The default color theme is based off [One Dark](https://github.com/AGMStudio/prism-theme-one-dark). If you want to change the colors, you can download a new theme from the [Prism themes repo](https://github.com/PrismJS/prism-themes) or create your own.
26
+
The default color theme is [A11y Dark](https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css) optimized for accessibility. If you want to change the colorscheme, you can select from the plugin settings page a few different themes shipped with the plugin. You can also use a theme from the [Prism themes repo](https://github.com/PrismJS/prism-themes) or create your own.
27
27
28
28
The color theme is a single CSS file, there are a couple ways to customize:
You can also **set a default language**using the filter `mkaz_code_syntax_default_lang`, by default no default is set requiring you to select the language. By setting a default language when inserting a code block the language will already be set, you can still change if you wish to show code not using the default language.
84
+
You can also **set a default language**on the plugin settings page. If you set a default language when inserting a code block the language will be selected by default, you can still change if you wish to show code not using the default language. For the default language value, use an alias from the [supported languages list](https://prismjs.com/#supported-languages).
85
85
86
-
By adding the following to your theme's function.php would set JavaScript as the default:
@@ -36,7 +36,7 @@ The Code Syntax Block plugin uses the Prism autoloader plugin to support all of
36
36
37
37
= How to customize the color scheme? =
38
38
39
-
The default color theme is [A11y Dark](https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css) optimized for accessibility. If you want to change the colorscheme, you can select in the editor from a few different themes shipped with the plugin. You can also use a theme from the [Prism themes repo](https://github.com/PrismJS/prism-themes) or create your own.
39
+
The default color theme is [A11y Dark](https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css) optimized for accessibility. If you want to change the colorscheme, you can select from the plugin settings page a few different themes shipped with the plugin. You can also use a theme from the [Prism themes repo](https://github.com/PrismJS/prism-themes) or create your own.
40
40
41
41
The color theme is a single CSS file, there are a couple ways to customize:
42
42
@@ -86,11 +86,7 @@ Here is an example shortening the list to a smaller set:
86
86
87
87
= Can I set a default language so I don't have to select each time? =
88
88
89
-
Yes, use the filter `mkaz_code_syntax_default_lang` to set a default language when inserting a code block. You can still change if you wish to show code not using the default language.
Yes, on the plugin settings page in the dashboard you can set a default language when inserting a code block. You can still change if you wish to show code not using the default language.
94
90
95
91
= Can I override the conditional loading, so assets always load? =
0 commit comments