Sha256: bb319ab4f6afe9985382aae807285c426322282417d18e1054bbea967c76823f
Contents?: true
Size: 1.14 KB
Versions: 22
Compression:
Stored size: 1.14 KB
Contents
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Editor</title> <style type="text/css" media="screen"> body { overflow: hidden; } #editor { margin: 0; position: absolute; top: 0; bottom: 0; left: 0; right: 0; } </style> </head> <body> <pre id="editor"></pre> <!-- load ace --> <script src="../src/ace.js"></script> <script> var editor = ace.edit("editor") editor.setTheme("ace/theme/twilight") editor.session.setMode("ace/mode/html") // add command to lazy-load keybinding_menu extension editor.commands.addCommand({ name: "showKeyboardShortcuts", bindKey: {win: "Ctrl-Alt-h", mac: "Command-Alt-h"}, exec: function(editor) { ace.config.loadModule("ace/ext/keybinding_menu", function(module) { module.init(editor); editor.showKeyboardShortcuts() }) } }) editor.execCommand("showKeyboardShortcuts") </script> <script src="./show_own_source.js"></script> </body> </html>
Version data entries
22 entries across 22 versions & 2 rubygems