[Feature Request] Display a table in diagnostic window of Monaco Editor
See original GitHub issueContext
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
(* I don’t know if it is an existing feature or not *)
In this sample of Monaco Editor, when we hover on the Hover over this text
, we could see markdown result in the diagnostic window. The contents of the window are provided by the code:
contents: [
{ value: '**SOURCE**' },
{ value: '```html\n' + res.responseText.substring(0, 200) + '\n```' }
]
I’m wondering if it is possible to draw a table in the diagnostic window.
I tried to add { value: '| a | b | c | d | e | |---|---|---|---|---| | 1 | 2 | 3 | 4 | 5 |'}
, it did not work.
Could anyone help?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Display a table in diagnostic window of Monaco Editor
I'm wondering if it is possible to draw a table in the diagnostic window. enter image description here. I tried to add {...
Read more >HTML support in hover (inline HTML in IMarkdownString) #801
I did some experimenting and was able to achieve this via commands inside the IMarkdownString . I couldn't get this to work in...
Read more >Monaco Editor Playground
The Monaco Editor can be easily created, given an // empty container and an options literal. // Two members of the literal are...
Read more >monaco-editor | Yarn - Package Manager
The Monaco Editor is the code editor which powers VS Code, with the features better described here. Please note that this repository contains...
Read more >Matrix Table Question - Qualtrics
Carousel View. Carousel view allows survey takers to view matrix tables one statement at a time. In the editor, these look the same...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can use a template string for that (the line breaks are important for the table rendering).
CSS (augmented from post above):
Hover element:
@chengtie You can achieve this with raw HTML and specifying
supportHtml
. You may also be interested in #801.