php-ref icon indicating copy to clipboard operation
php-ref copied to clipboard

Hiding path to PHP file

Open ghost opened this issue 5 years ago • 0 comments

Hi - firstly, thanks for writing this - I use it all the time and find it really useful.

When the php-ref output is diplayed, e.g. if I did r($my_array) then in the top-right of the outputted data, I see e.g.

C:\websites\playlist.php:77

On your demo page the line number and file name are not displayed.

I have looked at the settings on the Options part of your instructions page but can't see an option I could use to hide the file name and line number.

Is there a way to hide the info which is displayed in this part of the php-ref output, using an example file path below:

<r data-backtrace="">
	C:\websites\playlist.php:77
</r>

I can see I can hide the path using jQuery - e.g.

$('r[data-backtrace=""]').hide();

However, as that's at the end of the page, I can still see the path to the PHP for a second or two before the path is hidden by the jQuery code.

Thanks

Jim

ghost avatar Jan 17 '21 14:01 ghost