function favoriteSpaceEquals()
%A highlighted block of editor text containing assignment statements will
%have space inserted around the '=' signs.
%
%Example: The initial text,
%
%           a=1;
%     bgg= 2;    
%         cl=3; 
%    
%becomes,
%    
%           a = 1;
%     bgg = 2;
%         cl = 3;


    [txt,info]=editorExtract(1);
    Pre=deblank(extractBefore(txt,'='));
    Post=strtrim(extractAfter(txt,'='));

    newtxt=info.indent+Pre + " = " + Post;
    newtxt(ismissing(newtxt))="";

    editorReplace( newtxt, info);

end