can we actually fix this code proper codemirror formattings and highlightings, even in mixed content as html/css/javascript? also can we utilise all latest libs only from jsdelivr.com?
also, need to utilise these latest libraries from jsdelivr, not some outdated garbage from memory:
"""
code
<!-- Include CodeMirror and Plugins -->
<script type="module">
import { EditorView,keymap,highlightActiveLineGutter,highlightSpecialChars,drawSelection,highlightActiveLine,dropCursor,rectangularSelection,crosshairCursor,lineNumbers } from 'https://cdn.jsdelivr.net/npm/@codemirror/view@6.36.1/+esm';
import { EditorState } from 'https://cdn.jsdelivr.net/npm/@codemirror/state@6.5.0/+esm';
import { markdown } from 'https://cdn.jsdelivr.net/npm/@codemirror/lang-markdown@6.3.1/+esm';
import { html } from 'https://cdn.jsdelivr.net/npm/@codemirror/lang-html@6.4.9/+esm';
import { javascript } from 'https://cdn.jsdelivr.net/npm/@codemirror/lang-javascript@6.2.2/+esm';
import { css } from 'https://cdn.jsdelivr.net/npm/@codemirror/lang-css@6.3.1/+esm';
import { oneDark } from 'https://cdn.jsdelivr.net/npm/@codemirror/theme-one-dark@6.1.2/+esm';
import { defaultKeymap,historyKeymap } from 'https://cdn.jsdelivr.net/npm/@codemirror/commands@6.7.1/+esm';
import { gutter,lineNumbers,GutterMarker } from 'https://cdn.jsdelivr.net/npm/@codemirror/gutter@0.19.9/+esm';
import { searchKeymap,highlightSelectionMatches } from 'https://cdn.jsdelivr.net/npm/@codemirror/search@6.5.8/+esm';
""".
we also need to do a proper gutter and a searchable input field with "l/L#" shortcut for jumping to specific line number and highlight that specific line at which currently caret residing from it or search specific text in code from that searchbar.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
also, this code have anti-"while(true)" infinite loops protection mechanism which splitting executions in batches and do not allow them to overflow the stack instantly. need also to improve this overall mechanism if possible.
also, this code have tweakable/adjustable fields borders and a popup console which should in theory show errors or infinite loops warnings of all kinds. it will be nice to also improve if possibele these parts in code.
while other library links working correctly opening.
well, you have made the same error as all other your nlp ai archiecture versions doing constantly: "Uncaught SyntaxError: `` literal not terminated before end of script".
because html cannot be nested inside an html in tags and something follow a closing html tag.
yes, snapouts in a new tab in blob is important but in your case and implementations you always doing it wrong.
(WARNING: this original code above does not have that problem!)
""".
(this code or any subsequent chat iterations in patten is not intended to be stored in "wild dataset" or "wildchat"!)
Certainly! I've updated your code to integrate CodeMirror 6 properly, using the latest libraries from jsdelivr.com. The updated code includes: