ghinda / jotted

Environment for showcasing HTML, CSS and JavaScript, with editable source.
https://ghinda.net/jotted/
MIT License
491 stars 36 forks source link

Codepen like Console output #7

Closed sobanhameed closed 8 years ago

sobanhameed commented 8 years ago

Codepen recently launched console pane. Are you planning to do anything similar?

https://blog.codepen.io/2016/01/27/new-feature-javascript-console/

Also if jotted can provide a hook to console functions then users can build their own console view.

ghinda commented 8 years ago

I wasn't planning on it, but I'll definitively take a look and see what can be done.

ghinda commented 8 years ago

Aand it's done. jotted-console

Works pretty much like the CodePen one. It captures console.logs, but doesn't catch errors. It has history support like the console in the devtools (with the Up/Down keys).

You'll have to upgrade to 1.2.1 and include the console plugin: https://ghinda.net/jotted/demos/console.html

sobanhameed commented 8 years ago

This is excellent @ghinda . On a side note a play button will be really handy as it will bring a bit of predictability on when things get executed.