Open jloleysens opened 4 years ago
Pinging @elastic/es-ui (Team:Elasticsearch UI)
The Monaco-based editor supports """sql Type your SQL here """ at the moment.
We will need to add collapseStringLiteral support for these cases.
Pinging @elastic/kibana-management (Team:Kibana Management)
Describe the feature:
Console supports three different languages: the console language itself (combination of cURL-like and XJSON), Painless and Elasticsearch SQL. Currently, syntax highlighting is automatically inferred from surrounding text like:
The common denominator being
"""
. The result has been a collection of lexer rules that are not very portable to other pieces of text in the editor. To make the lexer rules more simple and offer the end user more control over highlighting in different regions of text we could do something like:Describe a specific use case for the feature:
"""xlang
markers gives maintainers a much better way of introducing new languages to the lexer rules without needing to make them more complex."""