I need to format text in posts using WordPress to look like a code. Like here in stackoverflow we use { } to separate the code from the text. I need to do the same when I write my blogs in WordPress
Example ....
code will look like that !
I need to format text in posts using WordPress to look like a code. Like here in stackoverflow we use { } to separate the code from the text. I need to do the same when I write my blogs in WordPress
Example ....
code will look like that !
You must be logged in to post a comment.
Do you like the one used here: http://inturnets.com/2012/06/a-nice-tackling-with-jquery-and-css.html ?
It’s the syntaxhighlighter wp plugin, http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/ , a very customisable one and finally you are using simple tags like [html] html code [/html] or [css] css code [/css]
Good luck! 🙂
WordPress has a preformatted paragraph style that works OK without any plugins. Just select the text and then select the Preformatted style on the left side of the formatting bar:
I had installed a plugin, but then found this simpler and it works fine for my purposes.
This might be helpful to you
http://textformat.in/
Please do vote if it worth