jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Color separator #37

Closed richpeniche closed 10 years ago

richpeniche commented 10 years ago

Is there a way to target the pattern separator in order to change its color?

jaridmargolin commented 10 years ago

All of the formatting is done inside one input element so there is no way to change the color of various characters. It would require a complete rewrite of the library or some serious creativity. Perhaps you could manually place a span underneath the input and style it accordingly? My assumption is that it will be a headache to do. Good luck.