开发者

Convert div.class to <div class="class"></div> Textmate

开发者 https://www.devze.com 2023-03-01 15:13 出处:网络
My apologies for the post. I realize that this is more than likely redundant but for some reason I can\'t seem to find my answer.

My apologies for the post. I realize that this is more than likely redundant but for some reason I can't seem to find my answer.

I believe there is a keyboard shortcut in Textmate for converting something along the lines of

div.test

开发者_运维问答to

<div class="test"></div>

Any ideas? Anyone know where I can get documentation about this shortcut?

Thank you.


See Zen Coding and Sparkup.


Without the additions mentioned by @Bradford, the alternative option is to use the built-in snippets. For example (when the document is set to be HTML), typing div<TAB><TAB>test inserts the following and places the cursor on the second line:

<div id="test">

</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消