It would be pretty cool to be able to select an element/object in a rendered Mermaid Diagram and have it automatically "correlate" the text in the TextEditor that represents the selected element/object. The correlated text would be selected/highlighted in the TextEditor.
This task will most likely touch:
- Javascript in
index.html
- C# in
MermaidRenderer to alert the app that something was selected in the WebView
- C# in the
Services/Editor area. Possibly create a new MermaidLexer that will be responsible for the pattern matching to break up the syntax into meaningful tokens. Possibly create a new MermaidParser that does semantic analysis and output ab Abstract Syntax Tree. I already have some classes that can provide some starting points for this work:
Services/Editor/CommentingStrategy
Services/Editor/DocumentAnalyzer
Services/Editor/MermaidIndentationStrategy
- I suspect a good amount of refactoring of the existing code will be needed so it can be reused by these new classes - or maybe the new ones will supersede the existing ones?
It would be pretty cool to be able to select an element/object in a rendered Mermaid Diagram and have it automatically "correlate" the text in the TextEditor that represents the selected element/object. The correlated text would be selected/highlighted in the TextEditor.
This task will most likely touch:
index.htmlMermaidRendererto alert the app that something was selected in the WebViewServices/Editorarea. Possibly create a newMermaidLexerthat will be responsible for the pattern matching to break up the syntax into meaningful tokens. Possibly create a newMermaidParserthat does semantic analysis and output ab Abstract Syntax Tree. I already have some classes that can provide some starting points for this work:Services/Editor/CommentingStrategyServices/Editor/DocumentAnalyzerServices/Editor/MermaidIndentationStrategy