Hello. I am working on my own module which will replace whitespaces to
for my language. I am close to end, but now i noticed that if/when I work with long text, my SublimeText got freeze for few minutes.
I never work with python before and i don’t know, how Python works. So i think that my plugin is bad and problem with performance is problem with my code. I upload that file on Github
https://github.com/rybarova/autonbsp/blob/master/nbsp.py
It’s a good way type all regexps to new lines? Or is better to have one big regexp? My goal is that create similar converter like is that in PSPad or like here in JavaScript solution http://kod.djpw.cz/avxc
Thank you everyone who have time to help me with my bad code.