Excuse me: How to highlight the content of the code prompt for help

Excuse me: How to highlight the content of the code prompt for help

function getCompletions(token, objectContext, context, contextview, keywords, options) {
var found = , start = token.string, global = options && options.globalScope || window;
function maybeAdd(str) {
if (start==“”){
found.push(str);
} else if (str.toUpperCase().lastIndexOf(start.toUpperCase(), 0) == 0 && !arrayContains(found, str)){
found.push(str);
}
};
function hintRender(element, self, data) {
var div = document.createElement(“div”);
div.setAttribute(“class”, “autocomplete-div”);

  var divText = document.createElement("div");
  divText.setAttribute("class", "autocomplete-name");
  divText.innerText = data.displayText;

  div.appendChild(divText);
  element.appendChild(div);
};
  if (token.type == "property"){
    for(var key in context){
      var item = {text : context[key],
	              displayText : contextview[key],
				  render: hintRender
                 };  
      if (start==""){
	  found.push(item);
      } else 
      if(context[key].toUpperCase().lastIndexOf(start.toUpperCase(), 0) == 0 && !arrayContains(found, context[key])){
	    found.push(item);
      }	
    }
    //forEach(context, maybeAdd2);
  }else{
    forEach(keywords , maybeAdd);
	forEach(objectContext , maybeAdd);
    forEach(CodeMirror.changeContext , maybeAdd);
  }
return found;

}
bd14c6e4642a2edd2c2afd8d2fb25cad

After several days of effort, this problem has been perfectly resolved
20241106-163617