Compiler
HTML Tags
<template>
Run
<!DOCTYPE html> <html> <body> <h1>This is the template tag</h1> <p>Click the button below to reveal the template component hidden content.</p> <button onclick="showContent()">Show hidden content</button> <template> <h2>Web</h2> <img src="https://webtutor.dev/images/computer.jpg" width="250" height="150"> </template> <script> function showContent() { var template = document.getElementsByTagName("template")[0]; var clone = template.content.cloneNode(true); document.body.appendChild(clone); } </script> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S