Suppose I am writing a post and want to highlight only a couple of characters: like this
. How can I achieve this?
3 comments
Comments are closed.
Suppose I am writing a post and want to highlight only a couple of characters: like this
. How can I achieve this?
Comments are closed.
HTML language includes a special tag for displaying inline code. To apply it to your text, switch to the ‘Text’ visual editor tab and place the
<code>
tag before your bit of code, and the</code>
tag afterwards.If you want to use the backtick ` character for highlighting code like you do on Stack Overflow, check out this plugin by Tom McFarlin.
you can create a shortcode for this
paste above code in
functions.php
.use shortcode in wordpress editer like
your html output like
give some css to
.highlight
classImportant Link:
add_shortcode()
This subject has been successfully discussed here, and here.
Bungeshea is right, but you can also and simply add these tags in your text editor (not visual editor):