There are Live Templates, there is Emmet as well but I can't get with them what I need.
I want to change selected text like for example this:
About Us
Contact Us
Some other page
into:
<ul>
<li><a href="/about-us">About Us</a><li>
<li><a href="/contact-us">Contact Us</a><li>
<li><a href="/some-other-page">Some other page</a><li>
</ul>
And it would be best if I could do that with a shortcut key.
I used that a lot in PHPEd By Nusphere but here I don't see such an option. There was there option: get selection, parse with PHP script via shell and output back to editor and that way I could do anything with selected text.
Is that possible with PhpStorm? Is there something that I could use to achieve this effect with just one click?
I can do a Live template for one line of text, I don't see possibility to cover more lines at once. Then I could at least get just list of <li>
s without <ul>
.