Add three functions. 1) To load the CSS file required for syntax highlighting 2) To replace the editor and result text areas with CodeMirror syntax highlighted ones 3) Function to set the height of the CodeMirror areas to the maximum the screen will allow. It's not as good as being able to resize but I think it's a good compromise. Amendment to openQuery so that the syntax highlighted version gets updated when a query is opened.
The function string call to util:update contains the variable name $names when the map variable is called $n. This now matches the function in databases.xqm.