<http://forum.pspad.com/read.php?f=2&i=12429&t=12429>
----------------------------------------------------------------
Could it be possible to order the autocompletion list by the nearness of
the element of the list to the word that is being autocompleted?
For example:
<?
function makeLinkData(&$linkRow,&$customLinksArray)
{ extractAttribsFromString($linkRow[atributos],$linkRow) ;
$propNames=array(disp) ;
foreach($propNames as $propName)
if($customLinksArray[$propName])
foreach(array_keys($customLinksArray[$propName]) as
$propValue)
{
$propValueArray=&$customLinksArray[$propName][$propValue] ;
if(in_array($linkRow[id],$propValueArray))
$linkRow[$propName]=$propValue ;
}
}
function makeCustomLinkData($customLinkId,&$customLinksArray)
{ $propValues=array(nombre=>name,contenido=>url) ;
foreach($p // here I want to autocomplete $p to $propValues (the nearest
variable)
}
?>
Nevertheless, the variable that I want to complete appear at the end of
the autocompletion list.
So... I think it will be better if the autocompletion list is ordered by
the nearness to the word being autocompleted.
--
PSPad freeware editor http://www.pspad.com