A question about TextMate. For example, I just typed var_dump($codes);
, and I forgot to write <?php ?>
. So, now I want to highlight the area that I want to wrap the php tags around. How can I do this?
Using TextMate, how can I wrap everything in PHP tags
textmate
Related Question
- How to copy and paste Javascript code from a PDF file to a texteditor (Textmate or Sublime Text)
- Remote file transfer solution for TextMate
- How to configure Textmate2 to always show wrap Column line for all files
- TextMate 2: How to permanently default to soft tabs (spaces instead of tabs)
- How to edit theme colors in TextMate 2
- How to use tabs in Textmate 2 for files opened via Transmit
- MacOS – How to launch TextMate (and probably other software) from the command line
- Make TextMate run php from a different binary, not the original php
Best Answer
Simply add a new command called for ex 'Wrap in ' in your php bundle editor (Bundles->Bundle Editors->Show Bundle Editor)
In the Activation choose: Key Equivalent and hit:
CMD+SHIFT+W
(or whatever you'd like that's not already taken).Leave the scope selector to
source.php
In the snippet window write:
Now select anything and hit
CMD+SHIFT+W
and you're doneSorry I couldn't upload an image to show you I've just signed up.
EDIT I now have enough reputation to upload the image: