mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Syntax highlighting.
This commit is contained in:
parent
c11be25ff8
commit
6b7427454a
105 changed files with 17571 additions and 91 deletions
42
sh/tests/cases/001_basic.html
Normal file
42
sh/tests/cases/001_basic.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<pre id="sh_001_basic" class="brush: js;" title="Title/caption should render">
|
||||
/**
|
||||
* multiline comment
|
||||
*/
|
||||
|
||||
text
|
||||
|
||||
// single line comment
|
||||
|
||||
text
|
||||
|
||||
"string" text 'string' text "string"
|
||||
"string with \" escape" text 'string with \' escape' text "string with \" escape"
|
||||
|
||||
var code = '\
|
||||
function helloWorld()\
|
||||
{\
|
||||
// this is great!\
|
||||
for(var i = 0; i <= 1; i++)\
|
||||
alert("yay");\
|
||||
}\
|
||||
';
|
||||
</pre>
|
||||
|
||||
<script type="text/javascript">
|
||||
queue(function()
|
||||
{
|
||||
var $sh;
|
||||
|
||||
module('001_basic');
|
||||
|
||||
test('basic html check of default elements', function()
|
||||
{
|
||||
$sh = $('#sh_001_basic');
|
||||
ok_sh($sh);
|
||||
ok_toolbar($sh);
|
||||
ok_caption($sh, 'Title/caption should render');
|
||||
ok_gutter($sh);
|
||||
ok_code($sh);
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue