Wordpress Code Escape

Posted on Saturday the 9th of June, 2007 at 10:26 pm in Plugins

Here is another small modified plugin that auto-escapes your code, nicely displays line numbers and uses valid XHTML. This plugin is based off of SemCodeFix, and adds many of the features I wanted in my code plugin.

Download:
Wordpress Code Escape

Directions:
Download the file and save it as a .php file.
Upload to your plugins directory.
Activate it.
You may optionally choose to add the following style information to your theme’s style.css.

  1. .code_child {
  2. font-family:"Courier New", Courier, monospace;
  3. white-space:pre;
  4. width:90%;
  5. background-color: #F4F4F4 !important;
  6. overflow:auto;
  7. border:1px inset;
  8. margin:10px;
  9. }
  10. ol.code_child li{
  11. margin:0;
  12. padding:0 !important;
  13. line-height:100% !important;
  14. margin-bottom: -8px;
  15. margin-bottom: expression(5 +"px");
  16. margin-left: expression(35 + "px");
  17. }
  18. Use the following to copy and paste the code.

Related posts


Leave a reply

:) :D :( :o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: ;) :!: :?: :idea: :arrow: :| :mrgreen: