Skip to content

Commit

Permalink
added interactive view of source code for each lesson.
Browse files Browse the repository at this point in the history
added ACE editor, to prepare for a nice source code editor later on
  • Loading branch information
dcowden committed Aug 24, 2014
1 parent 0c28f06 commit cdf4c11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/webapp/WEB-INF/pages/main_new.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<script src="js/angular/ui-bootstrap-tpls-0.11.0.min.js"></script>
<!-- Feature detection -->
<script src="js/modernizr-2.6.2.min.js"></script>
<script src="js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
Expand All @@ -52,6 +53,8 @@
<script type="text/javascript" src="js/goatConstants.js"></script>
<!-- end of JS -->



<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>WebGoat V6.0</title>
</head>
Expand Down Expand Up @@ -114,7 +117,7 @@
<h4>Lesson Source Code</h4>
<div class="panel" >
<div class="panel-body">
<p>{{lessonSource}}</p>
{{lessonSource}}
</div>
</div>
</div>
Expand Down Expand Up @@ -151,6 +154,10 @@
}, "html");
});
app.init();
var editor = ace.edit("editor");
//editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/javascript");
});
// make all forms ajax forms
var options = {
Expand Down

0 comments on commit cdf4c11

Please sign in to comment.