Elements
Editor
Accent
Scheme
Backdrop motion
Elements

Editor

editor is a code editor as an element: a real textarea under coloured lines, with pairs, indenting, comments, find and replace. Bound to state, what is typed is the page's at once.

The element

editor value= lang=Every attribute on a switch. The language list is the highlighter's; each has its own text, kept as you edit.
lang
lines
wrap
readonly
tab
00000000000000000000000000000000000000000000000000
525 characters
21 lines
JavaScript
A value the page assigns replaces the text and raises no event. focus("id") puts the caret in it.

Events

input and changeinput on every edit (typing, a paste, undo, a replace), handed the text. change when the editor is left, if the text is not what it was when it was entered.
00000000000000000000000000000000000000000000000000
0inputtype something
0changewhen it is left
the text change handed over
Type, then click outside the editor.

Attributes, one at a time

tab=4Spaces in one level. In python and yaml, Enter after a colon goes one level deeper.
00000000000000000000000000000000000000000000000000
226 characters · 13 lines
wrapSoft wrap: numbers stay beside the first row of their line. Without it long lines scroll sideways.
wrap
00000000000000000000000000000000000000000000000000
readonlyThe same view: select, copy and find (Mod+F), but no typing. Tab moves on.
00000000000000000000000000000000000000000000000000
Type into it: nothing changes.
placeholder, lines=false, its own stylesIt is a div: height, font-size, border and radius written on it win. One line high with no gutter makes a query field.
lines=false, height=38
00000000000000000000000000000000000000000000000000
placeholder, font-size=15, border-radius=16, an accent border
00000000000000000000000000000000000000000000000000
Empty: the placeholder shows.

Keys

Mod is Cmd on a Mac, Ctrl elsewhere. The caret, selection, clipboard, IME and the phone's keyboard are the platform's own.
What the keys doTry them in the editor beside the list.
Tab
Indents the selected lines, or inserts spaces to the next stop.
ShiftTab
Outdents the line, or every line of the selection.
Mod]
Indent the same lines.
Mod[
Outdent them.
Enter
A new line at this one's indentation; one level deeper after ( [ { and, in python and yaml, after a colon. Between a pair it opens three lines.
Backspace
In the indentation: back one level. Between an empty pair: removes both.
([{"'`
Also writes the closer; typing the closer that is there steps over it; over a selection they wrap it.
Mod/
Comments or uncomments the lines, in the language's style.
ModD
Duplicates the line or the selected lines (also Shift+Alt+Down / Up).
AltUp / Down
Moves the lines up or down.
ModZ
Undo. Shift+Mod+Z or Ctrl+Y: redo.
ModF
Find, with the selection as the query; the bent arrow opens replace.
ModG
Next match while find is open. Shift+Mod+G: the previous one.
EscapeTab
Leaves the editor: after Escape the next Tab moves focus on.
00000000000000000000000000000000000000000000000000
Shown as you type: the caret's line is banded, the bracket beside the caret and its partner are outlined, and other places a selected word appears are tinted.

A long file

5,000 linesThe textarea holds the whole text; the coloured layer and the gutter hold only the lines in view and a dozen either side.
00000000000000000000000000000000000000000000000000
5000 lines
129270 characters
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25