# `Alternera.Plugins.WasmModule.EditorMode`
[🔗](https://github.com/10e-ab/alternera-wasm/blob/v0.9.1/alternera_plugin_wasm_module/lib/alternera/plugins/wasm_module/editor_mode.ex#L1)

The colouring of the WebAssembly module step's configuration text in
the proxy's code editor: a colocated hook whose module code registers
the language `"wasm_module_config"` with the editor when app.js loads
(`window.AlterneraEditorModes`, read by the proxy's
`assets/js/lua_editor/registered_modes.js`). The hook itself does
nothing and no element uses it.

A configuration is most often JSON, so the parser colours JSON: strings
(keys apart from values), numbers, `true`, `false`, `null` and
brackets. Anything else is left plain, since the module may read any
text. It is this package's own, a few lines, and imports nothing.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
