setDocumentSource abstract method
Set a custom format document source. Same as setScriptSource but marks
the script as a document handled by the FileFormat protocol script with
formatScriptId. Highlight, problems, autocomplete, hover, and format
requests dispatch to that handler inside the workspace. An empty
formatScriptId registers the document with no intelligence.
Implementation
Future<HighlightResult> setDocumentSource(
String scriptId,
String scriptName,
String source, {
required String formatScriptId,
required String formatExtension,
bool highlight = false,
});