Quick Start

Include the JS & CSS:

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

BBCode

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

XHTML

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

Finished!

Download or Read the docs