This package contains a launcher to open files in NetBeans at the defined line number and an associated desktop file that conforms to the Desktop Entry Specification for use in Gnome and KDE desktop environments. Designed for productivity during developing Symfony Projects.
Thanks to Author of PHPStorm URL Handler - Stefan Auditor stefan.auditor@erdfisch.de
Repository: sanduhrs/phpstorm-url-handler
Inspired by PHPStorm URL Handler project implementation of NetBeans URL Handler was created using NetBeans CLI
Create symlink for netbeans executable e.g.:
ln -sfn /usr/local/netbeans-11.3/netbeans/bin/netbeans /usr/bin/netbeans
Install via bash script install.sh:
bash ./install.sh
Follow the Symfony docs
framework:
ide: 'netbeans://open?file=%%f&line=%%l&/var/www/app/>/projects/my_project/'
It can be used to open files at the specified line from within the browser by placing a link of the following kind in the markup:
<?php
$file = "/path/to/filename.php";
$line = 35;
print "<a href='netbeans://open?url=file://$file&line=$line'>Open with Netbeans</a>";
print "<a href='netbeans://open?file=$file&line=$line'>Open with Netbeans</a>";
?>
FILE="/path/to/filename.php"
LINE=35
./netbeans-url-handler "netbeans://open?url=file://${FILE}&line=${LINE}"
This alternative syntax matches the format used by Netbeans for the Macintosh for cross-platform compatibility.
FILE="/path/to/filename.php"
LINE=35
./netbeans-url-handler "netbeans://open?file=${FILE}&line=${LINE}"
GNU GENERAL PUBLIC LICENSE