Create highlight code block in WordPress – Learn WordPress from a to z

Tutorials 0 lượt xem
Create highlight code block in Wordpress - Learn Wordpress from a to z thumbnail

How to create highlight code block in WordPress?

You feel the default WordPress code display is too boring and you want the code to look like in the IDE.

It’s easy, there’s Code Syntax Block Plugin to help you do that easily.

1: Installation: you go to Plugins => select Add new and then type the keyword “Code Syntax Block”:

Code Syntax Block

2: How to use: after you have activated it, go to the article section and use it with the Gutenberg editor, note if you use the Edit Classic plugin you may not see the settings

of this plugin:

Code Syntax Block instructions for use

Here I try a php code:

+ Language : you choose the language that the code block displays.

+ Show line number: display the number of lines of code.

+ Title for Code block: Add a title for this code.

+ Global Color Scheme: select the interface for the code block.

And this is the result:

Epilogue

Hope the tutorial on how to create highlight code block in WordPress.

If you find it interesting, you can follow the  wordpress tips section  to know more new knowledge.

Follow fanpage to receive the latest posts:  Group

Wish you have interesting and interesting knowledge about wordpress!

 

 

Bài viết liên quan