Unfortunately, it doesn’t work (as it probably should do).
v2165 portable, Windows 7 x64 SP1 german.
It was installed correctly (and it shows it’s menu commands under View - Change Tracker) but it doesn’t mark the correct line nor is it able to highlight the correct one or move the cursor to it.
Tried it with different files and different line endings (windows / unix).
An example: The original function
[code]<?php
function create_more_link( $string, $max, $moretext )
{
if ( strlen( $string ) > $max ) {
$max -= strlen( $moretext );
$string = strrev( strstr( strrev( substr( $string, 0, $max ) ), ’ ’ ) );
$link = ‘’ . $moretext . ‘’;
$string .= $link;
}
return $string;
}
$str = ‘It was a dark and stormy night when the Baron prepared his plane.’;
$values = create_more_link( $str, 40, ‘more’ );
echo “
{$values} abc def
”;
?>[/code]
Now I add a new line:
[code]<?php
$val = 2;
function create_more_link( $string, $max, $moretext )
{
if ( strlen( $string ) > $max ) {
$max -= strlen( $moretext );
$string = strrev( strstr( strrev( substr( $string, 0, $max ) ), ’ ’ ) );
$link = ‘’ . $moretext . ‘’;
$string .= $link;
}
return $string;
}
$str = ‘It was a dark and stormy night when the Baron prepared his plane.’;
$values = create_more_link( $str, 40, ‘more’ );
echo “
{$values} abc def
”;
?>[/code]
What I get is: The line with “function create_more_link( $string, $max, $moretext )” is marked with a green dot. Both menu entries (highlight / go to next) don’t do anything (regardless where I position the caret).
Regards,
Highend