BlindJS is an extremely useful tool for lectures, lessons and presentations.
It allows you to write code samples quickly and without any chance for mistakes.
BlindJS is a Javascript library that replaces content with pre-defined code in your code
editor or web page.
Show the code - right click and "Open With BlindJS"
Go back to regular editing - right click and "Terminate BlindJS"
Open VSCode and typectrl+P
and type ext install ShaiMesisterano.blindjs
- Include
lib/blind.min.js
before</body>
- Create a wrapper and insert your code:
<div id="divElement"> function func(){ alert("Super Awesome!"); } </div>
- Add textarea placeholder:
<textarea id="textareaElement"> </textarea>
- Start BlindJS with reference to an input text ∧ output element:
BlindJS.start({ input: divElement.innerText, output: textareaElement });
BlindJS was created by Shai Mesisterano and is licensed under MIT.