A Sublime Text commands that open the PHP Manual for a keyword or symbol.
Place your cursor on a PHP keyword or symbol and press f1 to open the local PHP manual (if configured), or shift+f1 to open the online PHP manual.
Download the PHP manual, pick the "many HTML files" tar.gz, and unpack it.
Set the PHP manual path of your unpacked local manual.
Command Palette → Preferences: Settings
"goto_php_manual.path": "~/php-manual/php-chunked-xhtml",Disable the f1 and shift+f1 keys.
Command Palette → Preferences: Settings
"vintageous_handle_keys": {
"<f1>": false,
"<S-f1>": false,
},For more information on configuring NeoVintageous see configuring the NeoVintageous key handler.
If you use GotoDocumentation and also use the f1 key binding, then add a context exclude for the PHP scope so that f1 passes through to Goto PHP Manual.
Command Palette → Preferences → Key Bindings
{
"keys": ["f1"],
"command": "goto_documentation",
"context": [
{
"key": "selector",
"operator": "equal",
"operand": "-embedding.php",
"match_all": true
}
]
},| Key | Description |
|---|---|
f1 |
Open local PHP manual with fallback to online PHP manual. |
shift+f1 |
Open online PHP manual. |
Command Palette → Preferences: Settings
| Setting | Description | Type | Default |
|---|---|---|---|
goto_php_manual.path |
Path to local php manual. | string |
null |
goto_php_manual.keymaps |
Enable keymaps. | bool |
true |
Install GotoPhpManual via Package Control.
Released under the GPL-3.0-or-later License.