Posted By

rolandog on 07/15/06


Tagged

valid snipplr plugin xhtml wordpress output


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

rolandog
dandyna
yuconner


Make Snipplr WordPress plugin output valid XHTML


 / Published in: PHP
 

URL: http://rolandog.com/archives/2006/07/15/snipplr-wordpress-plugin/

You should edit your WordPress plugin so that the $source variable at the end shows this value. Though it is a shame that code can't have an 'ol' as a childNode, and neither can the pre element. Couldn't find any way of making it all fit: http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/text/pre.cfm

  1. $source = "</p><p>{$title}{$author}{$comment}</p><div class='code' style='border: 1px dotted; overflow: auto; white-space:nowrap;'>$source</div><p>";
  2.  
  3. /* You should also set, in your WordPress Stylesheet, a 'code' class:
  4. .code {
  5. font: 1.1em 'Courier New', Courier, Fixed;
  6. text-align: left;
  7. }
  8. */

Report this snippet  

You need to login to post a comment.