Improved rendering of JavaScript that has parse errors

This commit is contained in:
Jeremy Ruston 2012-03-02 12:09:06 +00:00
parent 488562bd95
commit 865a0ad7cc
6 changed files with 64 additions and 5 deletions

View file

@ -0,0 +1,13 @@
title: SampleJavaScriptWithError
type: application/javascript
/*
This is an example JavaScript file
*/
function myFunction(param) {
if(=) { // An error
param = param/17;
}
return param * Math.PI; // Perform a calculation
}