Is there a way to parse a string into a syntaxTree()
using “@codemirror” without state?
Use the parse
method on your parser. So if you have a Language
object that’s language.parser.parse(string)
.
@marijn And is there a way to create EditorState
, and read its highlights and decorations without EditorView
? Obviously, you wouldn’t get the CSS classes, and all that stuff, but just some information about what the styles are currently?