SDK Bug -> Plugin Dev -> search.findALL


Per sdk/api documentation the findAll command on the Ace editor should return an array of Ranges. However I am only getting back the count objects found…

Here is my code:

var rgba = /rgba\(\s*(?:(\d{1,3})\s*,?){4}\)/g;
var ranges = ace.findAll(rgba,{
    regExp: true,

Thanks for any help!


That doc is broken, findAll is used by findAll command to select all the instances. Could you give a link to that documentation page?

Note that if you are trying to add markers for all the colors, searching whole file is not the best approach, as it will slow down the editor.


Docs here:


The find all command was an approach for a one time user initiated highlight all command. I’m hoping to implement something more elegant for on doc change, etc…