Code blocks color theme
1.3.2įix issue with PHP warning when no posts 1.3.1įix compatibility issue with Gutenberg plugin 7.9 1.3.3įix block validation error for user roles with restricted permissions. Fixes default text when dark mode enabledįix alignment with Twenty Twenty theme 2.0.0įix setting default language using filter. Setting CodeBlocks Color Themes CodeBlocks Dark Color Themes Kho kin thc hc thit k hiu qu nht ti nh. Tag c lin quan n ni dung chnh nn layout sang mu en. Removing formating tools that did not workĬompatibility fixes with TwentyTwentyOne theme Setting CodeBlocks Color Themes CodeBlocks Dark Color Themes v cc hnh nh lin quan nchuyn mc ny.Fix pasting plain text stripping elements.Applies color syntax to all code blocks, language not required.Fixes issues with white text on light background.Fix background color not being applied unless language specified.
#Code blocks color theme archive
On archive page triggered by Beaver Builder Fix undefined index error with $tag not defined.Publish view: Remove border from code Twentytwentytwo.Publish view: Fix line number alignment.Editor view: Show labels above code block.Yes, use the filter mkaz_code_syntax_force_loading to force always loading assets, otherwise it users has_block to check.Įxample: add_filter( 'mkaz_code_syntax_force_loading', '_return_true' )
#Code blocks color theme full
If you would prefer specifying a full URL, you can use the filter mkaz_prism_css_url and specify a full URL to the stylesheet to use.Īn example adding a filter to change the URL, add the following to your theme’s function.php add_filter( 'mkaz_prism_css_url', function() ) Ĭan I override the conditional loading, so assets always load? If you do not like that file location, you can use the filter mkaz_prism_css_path and specify a path relative to your theme to use. Add your custom file in that location, and it will be used.
The plugin will check the current theme for the file: assets/prism/prism.css and use that file if it exists. The color theme is a single CSS file, there are a couple ways to customize: You can also use a theme from the Prism themes repo or create your own. If you want to change the colorscheme, you can select in the editor from a few different themes shipped with the plugin. The default color theme is A11y Dark optimized for accessibility. See the list of supported languages here. The Code Syntax Block plugin uses the Prism autoloader plugin to support all of the languages Prism supports.