This is a quick Codemirror port of lovely experiement by Joel Besada.
Simply put code-blast.js
in your project and set the blastCode
option to true when initializing codemirror. This library comes with inbuilt 2 types of effect.
var cm = CodeMirror(document.body, {
blastCode: { effect: 1}, // `effect` can be 1 or 2
}
- Configurable options