style body min height 200px editor position absolute width 500px height 200px style ace editor script src https cdnjs cloudflare com ajax libs ace 1 15 0 ace min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 ext modelist min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 ext language_tools min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode javascript min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode html min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode css min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode python min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode markdown min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode c_cpp min js script div id editor let i 2 for var b 0 b 3 b console log b b div script let editor null reference to the Ace editor let aceModeList null used by the Ace editor editor ace edit editor editor setOptions useWorker false aceModeList ace require ace ext modelist const filename cat js let mode aceModeList getModeForPath filename console log Ace selected mode mode mode try editor session setMode mode mode catch e console log Ace No specific mode available for file extension console log ready script
https cdnjs cloudflare com ajax libs ace 1 15 0 mode markdown min js script script src https cdnjs cloudflare com ajax libs ace 1 15 0 mode c_cpp min js script div id editor let i 2 for var b 0 b 3 b console log b b div script let editor null reference to the Ace editor let aceModeList null used by the Ace editor editor ace edit editor editor setOptions useWorker false aceModeList ace require ace ext modelist const filename cat js let mode aceModeList getModeForPath filename console log Ace selected mode mode mode try editor session setMode mode mode catch e console log Ace No specific mode available for file extension console log ready script