Skip to content
VMBindraban edited this page Mar 4, 2013 · 2 revisions

The SxBootstap code view helper shows a code made with the twitter bootstrap. The following syntax builds the code. If given parameter is multilined, the code block turns into a pre block.

<?php
echo $this->sxbCode($string);
?>

Explicit usage

<?php
// code block
echo $this->sxbCode('Display a code block here');

// pre block
echo $this->sxbCode(
    'Display a code block here,
    also display it on the second line.'
);
?>

Content types

<?php
// addClass
echo $this->sxbCode($string)->addClass('codeClass');
?>
Clone this wiki locally