Code Syntax Block extends WordPress Block Editor by adding syntax highlighting support to the core code block using the Prism syntax highlighter.. After installing and activating the plugin, use in Block Editor by creating standard code block and selecting language format.. When creating new code block, select Code block, and then in Inspector select the language for the code. The Code Syntax Block plugin uses the Prism autoloader plugin to support all of the Prism supports. If you want to change the colors, you can download theme from the Prism themes repo or create your own.. The plugin will check the theme for the file assets prism prism css and use that file if it exists. If you would prefer specifying URL, you can use the filter mkaz prism css url and specify URL to the stylesheet to use... example adding filter to change URL, add the following to your theme's function php `php add filter { return 'https raw githubusercontent com PrismJS prism-themes master themes prism-hopscotch css } ) `. Note if you use the title filename feature and customize the CSS, you will need to apply your own style targeting the prism-titlename class... Interested in development.., check out SVN repository, or subscribe to the development log by RSS...
Read more