-
Notifications
You must be signed in to change notification settings - Fork 5
ACE Utils API
ACE utils class provides service for showing:
-
A number in the gutter and hovering over value [Ace's gutter decorations]
-
A popup when hovering an expression with the value gathered from a trace of TraceService [Ace's markers]
#####Note: To be used in Pastebin.
#Adding gutter decorations Ace uses default gutter decorations that show text only: annotations. They could be for errors, warnings and info. A common issue is to decide if annotations are enough for your cases. The rule of the thumb is: do you want to show Ace annotations with yours or more that text is to be shown? if so use decorations, otherwise use annotations.
Annotations are not be extended( based on the Gutter code). You can add decorations to change the CSS class of the gutter cell and override the gutter renderer to add custom text. Any other visual widget must be added from scratch. Obtaining configuration values from the gutter will help you shape your widgets accordingly.
To add custom decorations we need a CSS class and the row where we want to add it. As a collection, your decorations should be removed in proper system events such document or gutter changes.
The default class for this API is: , please take a look and customize it. You can also send yours.
Adding or removing gutter decorations trigger "changeBreakpoint" events. That is, do not work with them when capturing that event.