Plugin Directory

Code Markup

Code Markup is a WordPress plugin that makes it easy to include program code samples in your posts.

Download Version 1.3

What is this good for?

The plugin allows you to quickly copy and paste code into your blog, and add HTML markup to it to emphasise certain parts of it. Normally this is not possible without a lot of fiddly manual editing.

what tags are allowed by default?

If the code block has its lang attribute set to html or xhtml, then no tags are allowed: all tags are escaped and will display as typed. Otherwise the following tags are allowed: em strong b i ins del a span

How do I change the default behaviour?

To make the code block render as straight HTML, set the code block's "markup" attribute to "all". In this case, make sure that you have typed correct HTML!

To make the code block display exactly as typed, set the code block's "markup" attribute to "none".

To allow the default tags to be rendered as HTML, even in HTML code, set the code block's "markup" attribute to "default".

Requires: 1.5 or higher
Compatible up to: 2.5
Last Updated: 2008-4-14 Downloads: 14,801

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(6 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1