<notatio-code>
<notatio-code language="wolfram" value="Binomial[n, k]"> -- a small code box for source in a named language (wolfram, python, javascript, latex, json, glsl, …). Read-only by default (a <pre>), or an editable <textarea> that emits notatio-code-change with { value }. Syntax highlighting is a planned enhancement -- #render is the single seam where a highlighter would turn the value into markup.
Attributes
| Attribute | Type | Default | Notes |
|---|---|---|---|
language | string | "" | Syntax highlighting to apply, e.g. wolfram, python, javascript, glsl, wgsl. |
value | string | "" | The source text. Editable unless readonly.reflects |
readonly | boolean | true | Show the code without allowing edits.reflects |
rows | number | 0 | Visible height, in lines. |
hide-lang property hideLang | boolean | false | Hide the corner language tag, when the form is already indicated elsewhere. |