Closed undergroundwires closed 2 years ago
This was implemented by https://github.com/ajaxorg/ace/pull/4905 which have added customScrollbar option, please let us know if it does what you need.
Hi @nightwing , thank you for the information. I've checked the PR but still have hardtime understanding how I can highlight range of lines. It's very straightforward to add a marker:
editor.session.addMarker(
new AceRange(startRow, 0, endRow, 0),
'code-area__highlight',
'fullLine',
);
And I can highlight like this:
background-color: $color-secondary-light;
position: absolute;
But how can I get line number based highlighting of a range just like this? I see no examples or no documentation. I'd appreciate any guide.
I wonder if it's possible to add native support for highlighting/indicating/marking lines on scrollbar? If not, would you recommend a nice way to achieve it?
Example showing how it's done in Visual Studio Code:
Thank you for the awesome project. I've been happily using it in privacy.sexy for a while now.