ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

How to highlight words of two different data lists with different color in the same inputfield? #26

Open QaisarRajput opened 9 years ago

QaisarRajput commented 9 years ago

sumthing like

source1: [ {value: 'alex', uid: 'user:1'}, {value: 'andrew', uid: 'user:2'}, ], source2: [ {value: 'angry birds', uid: 'game:5'}, {value: 'assault', uid: 'game:3'} ],

i need to use one input field and want to highlight words from each list differently

Great Resource ! Thanks a Load

ivirabyan commented 9 years ago

You can't have two different sources of data. You have to just merge them together into one source (you can use icons to distinguish them). Changing highlighting color for particular type of mention (game for example) is not supported now, but it would be great to implement this.

alexanderdickson commented 9 years ago

+1 I would need this too, for mentions for users and hashtags.

memmaina commented 4 years ago

yeah, two data-source would be very ideal