-
Hello, I am not using any language service since I am mostly using ace editor for the live syntax highlighting as you type, custom autocomplete (based on the key words saved by the user and retrieved from backend) and formatting. I am only using java-like or go-lang setMode() for their syntax highlighting style. I am trying to get this hover tooltip to work in my angular 15 app. I am not using any third party wrappers and I followed this https://stackblitz.com/github/shhdharmen/ace-angular but removed any http request and adding themes and extension in the angular.json file for all offline use. another thing I thought I should mention is that all the autocomplete keywords, variables, methods and information of those methods/variables are user made and saved in the backend and I plan to make it load per ace editor sessions that are present on the page. I thought I try asking the community here for help since I couldn't find any examples online and the closest, or what seemed the closest, was adddynamicmarker and hovertooltip class which I could not figure out how to use with dynamic information tooltip and I couldn't find any working demo I can see how it behaves beside the source code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I recommend using the HoverTooltip, as in the kitchen-sink demo. Note that the kitchen sink demo uses diagnostic markers to receive relevant information, but with For Angular you can look into dynamic component. For the |
Beta Was this translation helpful? Give feedback.
I modified the ace-angular to have working hover tooltips: https://stackblitz.com/edit/github-xkdvn3?file=src%2Fapp%2Fapp.component.ts