Transitioning from Dreamweaver, looking for 'code snippet' |
Guru master
|
There are a number of tags for that purpose defined by default (hint: checkout Editor > Editor shortcuts in the settings and then scroll all the way down to the "HTML Tags" section).
Unfortunately you cannot define new ones (unless I haven't discovered that yet). There is a Code Templates section in the settings (Under the Editor part as well), that can be + used for this as well with a bit of tampering. Unfortunately you cannot assign a specific shortcut to the snippet, you'll have to use a dropdown list. Still interested? Okay. Define the code that you want to insert, use | for the place where you want the selected text (| is actually the caret position after insert). In your case that would be <strong>|</strong> Then all you have to do is select the code you want wrapped, hit the shortcut for the Templates dropdown (Ctrl+J by default), scroll down to the template you want to insert and hit enter. Presto! PS: Note the Language drop down in that dialog, you'll have to define the things you want again per file type. Obviously it would be nice to be able to assign a shortcut to a specific code template, but that's not possible (yet?) afaik. |
||||||||||||
|
Site Admin
|
you can also do this via an integration script (see appropriate forum on this site). it's a bit overkilling for such a trivial thing like inserting tags but lets you assign a shortcut.
|
||||||||||||
_________________ The PHP IDE team |
Transitioning from Dreamweaver, looking for 'code snippet' |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by