ColorSense-for-Xcode icon indicating copy to clipboard operation
ColorSense-for-Xcode copied to clipboard

Recognize colors even if there are line breaks

Open marcelofabri opened this issue 13 years ago • 2 comments
trafficstars

If there are line breaks in the method call (to enhance readability) the plugin can't recognize it as a color.

marcelofabri avatar Sep 20 '12 20:09 marcelofabri

I was able to achieve this, but I needed to remove the code that performs the regular expressions on the selected line. It now needs to search the all source code string.

Testing on my computer (a 15" Macbook Pro w/ Retina), I didn't notice any performances issues here, but I'm afraid this should be tested more. Maybe have an option on the menu, so it can be disabled if it's necessary.

marcelofabri avatar Jan 04 '13 21:01 marcelofabri

Can you make a pull request with your change? Perhaps we can work together to simplify the work it does.

yoiang avatar Dec 02 '13 20:12 yoiang