Размер файла: 621B
<script id="sh_012_server_side_input" type="text/plain">
function helloWorld()
{
// this is great!
for(var i = 0; i <= 1; i++)
alert("yay");
}
</script>
<div id="sh_012_server_side_output">
</div>
<script type="text/javascript">
queue(function()
{
var $sh;
module('012_server_side');
test('generate markup', function()
{
var brush = new SyntaxHighlighter.brushes.JScript(),
code = $('#sh_012_server_side_input').html()
;
brush.init({ toolbar: false });
$sh = $('#sh_012_server_side_output');
$sh.html(brush.getHtml(code));
ok_sh($sh);
ok_gutter($sh);
ok_code($sh);
});
});
</script>