Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

  • S May 2010

Who's Online 19

6apxatCurtisOdenconnectrgarygaryleafmonsterleogopal +13 guests

Code styling

This is to test how Code should be pasted like

(Header using <h1></h1>)

Using <code></code>:
if ($Session->IsValid()) {
// Bookmark link
echo Anchor(
'<span>*</span>',
'/vanilla/discussion/bookmark/'.$this->Discussion->DiscussionID.'/'.$Session->TransientKey().'?Target='.urlencode($this->SelfUrl),
'Bookmark' . ($this->Discussion->Bookmarked == '1' ? ' Bookmarked' : ''),
array('title' => T($this->Discussion->Bookmarked == '1' ? 'Unbookmark' : 'Bookmark'))
);
}


Using <code php></code>:
if ($Session->IsValid()) {
// Bookmark link
echo Anchor(
'<span>*</span>',
'/vanilla/discussion/bookmark/'.$this->Discussion->DiscussionID.'/'.$Session->TransientKey().'?Target='.urlencode($this->SelfUrl),
'Bookmark' . ($this->Discussion->Bookmarked == '1' ? ' Bookmarked' : ''),
array('title' => T($this->Discussion->Bookmarked == '1' ? 'Unbookmark' : 'Bookmark'))
);
}


Using <pre></pre>:
if ($Session->IsValid()) {
// Bookmark link
echo Anchor(
'*',
'/vanilla/discussion/bookmark/'.$this->Discussion->DiscussionID.'/'.$Session->TransientKey().'?Target='.urlencode($this->SelfUrl),
'Bookmark' . ($this->Discussion->Bookmarked == '1' ? ' Bookmarked' : ''),
array('title' => T($this->Discussion->Bookmarked == '1' ? 'Unbookmark' : 'Bookmark'))
);
}
Yay - PRE wins :)

Seems like normal HTML-formatting is fine here...
Tagged:

Comments

Sign In or Register to comment.