Demo for draft-js-code
Type some JavaScript below, Use "Command+Return" (or "Ctrl+Return" on Windows) to split/exit a code blocks:
var message = "Hello World"
+ "with four spaces indentation"
console.log(message);
And this is a code block with 2 spaces indentation
var message = "Hello World"
+ "with 2 spaces indentation"
console.log(message);