Quick Start

Include the JS & CSS:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" href="minified/themes/default.min.css" />
<script src="minified/jquery.sceditor.bbcode.min.js"></script>

BBCode

<script>
$(function() {
    // Replace all textarea tags with SCEditor
    $('textarea').sceditor({
        plugins: 'bbcode',
        style: 'minified/jquery.sceditor.default.min.css'
    });
});
</script>

XHTML

<script>
$(function() {
    // Replace all textarea tags with SCEditor
    $('textarea').sceditor({
        plugins: 'xhtml',
        style: 'minified/jquery.sceditor.default.min.css'
    });
});
</script>

Finished!

Download or Read the docs