BlazorMonaco | Blazor component for Microsoft 's Monaco Editor | Frontend Framework library
kandi X-RAY | BlazorMonaco Summary
kandi X-RAY | BlazorMonaco Summary
Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code. Not the complete set but most of the Monaco Editor functionality is currently supported. The package will be updated regularly to cover all the features and use cases soon. Any contributions, comments or suggestions are greatly welcome. Please feel free to contact me at @serdarciplak or via GitHub.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BlazorMonaco
BlazorMonaco Key Features
BlazorMonaco Examples and Code Snippets
Community Discussions
Trending Discussions on BlazorMonaco
QUESTION
I need to perform various XML structure related operations on an XML document. I can load it into the Monaco editor and get nice syntax highlighting and various other services. But can I get the node and tag information from a mouse click or select or KeyUp event or will I need to have an XDocument object and use the line number and column information from the editor events to synchronize?
I am building a Blazor client side application, with the BlazorMonaco project and setting the language to 'xml'. Any other ideas?
...ANSWER
Answered 2021-Feb-10 at 07:38The monaco editor only comes with simple support for most languages, which is mostly syntax highlighting (and no parsing). That means it cannot give you can syntactical information about the document content.
Intstead you need to implement your own parser for XML (e.g. using ANTLR4 and the XML grammar).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install BlazorMonaco
Add the following using directives to your root _Imports.razor file, or any other .razor file where you want to add a Monaco Editor.
Add the below Javascript and CSS links to your index.html file. Note: These script tags should come before the script tag for the blazor.webassembly.js file.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page