Optimalworks Ltd web design, SEO, training and consultancy 

the site completely surpassed my expectations GT, AutoDirector, we build websites that work, my website is great - I love it MP, XL Autos, reach more customers, make more sales, it's more than I ever could have expected LM, Trade Cars UK, we can help your business grow, 99% of business now comes from my website GV, Bash Events, promoting standards throughout the web industry, your contribution added a level of quality we would otherwise have struggled to achieve PS, Hemsley Fraser
  1. home
  2. Services
  3. Portfolio
  4. Contact us
  5. blog

CodeKeeper - free WordPress <code> block plugin

written by Craig, 30 August 2007

WordPress is a great content management system and has a very good text editor. Unfortunately, it can try a little too hard to please and changes code samples so they get additional line breaks or paragraphs.

Our CodeKeeper plugin solves the issue. It retains the formatting of <code></code> blocks and converts any characters to HTML entities when necessary. It is useful for small snippets of code that do not require colour-coding, line numbering, or the other effects offered by more powerful syntax highlighters.

To install it, extract codekeeper.php to your WordPress wp-content/plugins folder, load the administration panel, and activate it in the Plugins section. You may also find it preferable to use the standard editor rather than the WYSIWYG one.

You can now use code examples directly into the editor, e.g. <code> <p>This is an HTML code snippet.</p> </code>

You can also add CSS to the theme stylesheet to style the code sections, e.g. code { display: block; width: 90%; font-family: monospace; padding: 0.5em; margin: 1em 0 1.5em auto; color: #666; background-color: #eee; border: 1px solid #ccc; white-space: pre; overflow: auto; }

Download CodeKeeper WordPress Plugin (1 Kb)

You are free to use, modify, or distribute the software. An acknowledgment or link back to optimalworks.net would be great, and feel free to make a donation towards further development!

  • categories: free download
  • tags: download, software, wordpress
  • trackback: http://www.optimalworks.net/blog/2007/software/free-download/codekeeper-wordpress-plugin/trackback
  • bookmark: del.icio.us, digg, facebook, reddit, Furl, Spurl, Blinklist, Slashdot, Technorati, Yahoo!
add your comments
please enter your name
please enter your email address - it will not be published anywhere
please enter your website address
please enter your comments (all are moderated and checked for spam)
  • next article: WordPress 2.3: first impressions 
  • previous article: Easy rounded corner graphics 
search
  • all popular (5)
  • courses (1)
  • general (3)
  • hardware (1)
  • software (24)
    • free download (6)
    • web browsers (9)
    • web servers (2)
  • web development (31)
    • accessibility (4)
    • ajax (1)
    • css (2)
    • graphic design (4)
    • html (1)
    • javascript (7)
    • php (4)
    • seo (1)

tags

  • accessibility
  • ajax
  • apache
  • award
  • computing
  • css
  • design
  • developers
  • dom
  • download
  • editor
  • firefox
  • funny
  • graphics
  • hardware
  • html
  • ie
  • javascript
  • opera
  • php
  • portfolio
  • review
  • safari
  • seo
  • server
  • software
  • ssl
  • standards
  • wordpress
  • xml
  1. site map
  2. home
  3. Services
  4. Portfolio
  5. Contact us
  6. blog
  7. RSS feed
  8. project survey

XHTML 1.0 | CSS 2.1 | WAI AAA | printer-friendly

©2008 Optimalworks Ltd, Devon, UK. Registered in England and Wales No. 5922205.

This page can be viewed at http://www.optimalworks.net/blog/2007/software/free-download/codekeeper-wordpress-plugin