You should be aware that this plugin has a number of options which are not shown in the documentation, it's relatively outdated. Check out the source code for these, it's well commented. Of interest to you would be allowFreeTagging
and tokenDelimiter
. Set them like this:
$("#demo-input-local").tokenInput([
{name: "Ruby"},
{name: "Python"},
{ name: "JavaScript"},
{name: "ActionScript"},
{ name: "Scheme"},
{ name: "Lisp"},
{ name: "C#"},
{name: "Fortran"},
{name: "Visual Basic"},
{name: "C"},
{ name: "C++"},
{name: "Java"}
],
allowFreeTagging: true,
tokenDelimiter: ';');
With regards to colouring these tokens differently, that's a bigger job. Some pointers: make use of the onAdd callback, and be aware that the default tokenValue for 'FreeTags' is the same as their propertyToSearch (so item.id==item.name
is a (non-failsafe) way of checking for these freetags.)