We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea118ec commit 270c2a3Copy full SHA for 270c2a3
index.html
@@ -235,17 +235,18 @@ <h1>Try it online</h1>
235
text += editor.getValue();
236
text += '\n```\n';
237
try {
238
- var ast = parser.parseCode(editor.getValue());
+ var ast = parser.parseCode(editor.getValue());
239
text += '\nAST Structure :\n';
240
text += '```json\n';
241
text += JSON.stringify(ast, null, 2);
242
243
- } catch(e) {
+ } catch(e) {
244
text += '\nPHP Error :\n';
245
text += '```\n';
246
text += e.stack;
247
248
- }
+ }
249
+ $out.val(text).focus();
250
});
251
editor.on("change", refreshAst);
252
refreshAst();
0 commit comments