MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / makePrompt

Function makePrompt

lib/web/CodeMirror/keymap/vim.js:4317–4324  ·  view source on GitHub ↗
(prefix, desc)

Source from the content-addressed store, hash-verified

4315 }
4316 }
4317 function makePrompt(prefix, desc) {
4318 var raw = '<span style="font-family: monospace; white-space: pre">' +
4319 (prefix || "") + '<input type="text" autocorrect="off" ' +
4320 'autocapitalize="off" spellcheck="false"></span>';
4321 if (desc)
4322 raw += ' <span style="color: #888">' + desc + '</span>';
4323 return raw;
4324 }
4325 var searchPromptDesc = '(Javascript regexp)';
4326 function showPrompt(cm, options) {
4327 var shortText = (options.prefix || '') + ' ' + (options.desc || '');

Callers 1

showPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected