RSS

Syntax highlighter Test

Fri, May 30, 2008

PHP

写了一些代码测试一下。

1
2
3
4
5
6
7
8
9
10
public function executeShow()
{
  $this->post = PostPeer::retrieveByPk($this->getRequestParameter('id'));
  $this->forward404Unless($this->post);
 
  $c = new Criteria();
  $c->add(CommentPeer::POST_ID, $this->getRequestParameter('id'));
  $c->addAscendingOrderByColumn(CommentPeer::CREATED_AT);
  $this->comments = CommentPeer::doSelect($c);
}
def my_ruby_snippet
    blog_post.should(be_highlighted)
end
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • E-mail this story to a friend!
  • Haohao
  • Reddit
,

This post was written by:

Jay - who has written 38 posts on Activars.


Contact the author

Leave a Reply