PHP Comment Wrap
Wrap your HTML code in PHP comments
Details
Installs
- Total 6K
- Win 4K
- Mac 760
- Linux 969
Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- bitbucket.org
Sublime PHP Comment Wrap
A snippet to wrap your HTML code in PHP comments. Very useful for WordPress developers when there's a lot of HTML code in PHP files.
Plugin function is limited to only wrapping the HTML and JS code inside PHP files.
Quickstart
- Install Via Package Control
PHP Comment Wrap
- Select some text.
- Use the default key bindings 'ctrl+alt+c' to wrap the selection in php comments
- Enjoy!
Installation
via PackageControl
If you have PackageControl installed, you can use it to install the package.
Just type cmd-shift-p
/ctrl-shift-p
to bring up the command pallete and pick Package Control: Install Package
from the dropdown, search and select the package there and you're all set.
Manually
You can clone the repo in your /Packages
(Preferences -> Browse Packages…) folder and start using/hacking it.
cd ~/path/to/Packages
git clone https://bitbucket.org/bey0nd_g0dlike/phpcommentwrap PHPCommentWrap
Options
selection_start
& selection_end
: These options allow you to modify the kind of selection wrapping the plugin will insert.
{
"keys": ["ctrl+alt+c"],
"command": "wrap_html_in_php_comment",
"args": {
"selection_start": ""
},
"context":
[
{
"key": "selector",
"operator": "equal",
"operand": "text.html"
},
{
"key": "selector",
"operator": "not_equal",
"operand": "source.php"
}
]
}
Issues
This is the first version, so feel free to comment or send requests at: http://bitbucket.org/bey0nd_g0dlike/sublime-text-php-comment-wrap/issues