Index: misc/autocomplete.js =================================================================== RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v retrieving revision 1.5 diff -u -p -r1.5 autocomplete.js --- misc/autocomplete.js 31 Aug 2005 18:37:30 -0000 1.5 +++ misc/autocomplete.js 19 Sep 2005 02:26:55 -0000 @@ -197,11 +197,13 @@ jsAC.prototype.found = function (matches } var ul = document.createElement('ul'); var ac = this; + var matchRegExp = new RegExp('('+this.input.value + ')', 'gi'); if (matches.length > 0) { for (i in matches) { li = document.createElement('li'); div = document.createElement('div'); div.innerHTML = matches[i][1]; + div.innerHTML = div.innerHTML.replace(matchRegExp, '$1'); li.appendChild(div); li.autocompleteValue = matches[i][0]; li.onmousedown = function() { ac.select(this); }; Index: misc/drupal.css =================================================================== RCS file: /cvs/drupal/drupal/misc/drupal.css,v retrieving revision 1.120 diff -u -p -r1.120 drupal.css --- misc/drupal.css 7 Sep 2005 20:56:00 -0000 1.120 +++ misc/drupal.css 19 Sep 2005 02:26:56 -0000 @@ -570,6 +570,9 @@ ul.secondary a.active { background: #0072b9; color: #fff; } +#autocomplete span.match { + font-weight: bold; +} /* Animated throbber */ html.js input.form-autocomplete { background: url('throbber.gif') no-repeat 100% 2px;