Today we will see a plugin that just came out in the WordPress repository with which we will be able to display code snippets php, css, js, etc in our content in a very simple way and with a very professional style.
You can change the design to light or dark according to your needs, the background color, the programming language and various other settings. This plugin is called CODE SNIPPET DM is free and you will find it in the WordPress repository.
DISPLAY CODE SNIPPETS WITH CODE SNIPPET DM
Install and activate the plugin.
If we now go to create a new post we will see that in the options of the editor of our WordPress we have a new option.
If we click we will get a new popup window where we can change the design to light or dark, choose the background color, the language (php, javascript, css, C-Like, hTML) and we can also enable the ‘Wrap Code’ that what it does is to show all the code on the screen without scrolling.
Now if we click on ‘Accept’ and publish the entry, if we go to see it we will find something similar to the following image.
VIDEO TUTORIAL CODE SNIPPET DM
In the following video we are going to install and activate the plugin, we are going to create a new post and we are going to insert a code snippet in the editor and we are going to visualize it later to see how it looks like.
You have already seen how easy it is to display code snippets and how good they look using the Code Snippet DM plugin. If you have any questions, suggestions or just want to tell me something you can do it through the contact form or leave a comment in this post and I will answer you as soon as possible.
Leave a Reply