Years ago I created websites, but I've been away from all forms of coding for several years. I purchased TextMate for because one of the screencasts at http://screencasts.textmate.org/html_text_transformations.mov was so impressive. However the speaker assumes some non-obvious fundamentals.
When he types "html" suddenly <html> </html> appears on the screen nicely formatted. Doesn't for me. Hitting the tab key just jumps the cursor to the right. Hitting return or enter pushes the cursor to a new line. What has he done to effect the transformation? He doesn't say.
I have figured out that when he typed "doctype" he then hits the tab key to present some options. That works.
I'm on a Mac OS X 10.8.3 running TextMate Version 1.5.11 (1635)
What basic assumptions am I missing?
Appreciated.
Morley Chalmers — The highest result of education is tolerance. — Helen Adams Keller, lecturer, author, first deaf-blind person to receive a Bachelor of Arts degree (1880–1968)
Morley,
I'm using TextMate 2.0 (the alpha version), and <html> completion doesn't work for me either. But you can just type CTRL+< (or CTRL+SHIFT+comma) for a generic open/close tag, then type "html", then tab to place the caret between the open/close tags.
If you click the cog item in the footer, you can see all commands available for the selected language, including completions.
I hope this helps.
Bruno Favaretto
On Fri, May 3, 2013 at 8:55 PM, Morley Chalmers morleychalmers@icloud.comwrote:
Years ago I created websites, but I've been away from all forms of coding for several years. I purchased TextMate for because one of the screencasts at http://screencasts.textmate.org/html_text_transformations.mov was so impressive. However the speaker assumes some non-obvious fundamentals.
When he types "html" suddenly <html> </html> appears on the screen nicely formatted. Doesn't for me. Hitting the tab key just jumps the cursor to the right. Hitting return or enter pushes the cursor to a new line. What has he done to effect the transformation? He doesn't say.
I have figured out that when he typed "doctype" he then hits the tab key to present some options. That works.
I'm on a Mac OS X 10.8.3 running TextMate Version 1.5.11 (1635)
What basic assumptions am I missing?
Appreciated.
Morley Chalmers — The highest result of education is tolerance. — Helen Adams Keller, lecturer, author, first deaf-blind person to receive a Bachelor of Arts degree (1880–1968)
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On May 4, 2013, at 6:55, Morley Chalmers morleychalmers@icloud.com wrote:
[…] What basic assumptions am I missing?
You may also like this screencast http://blog.macromates.com/2006/html-screencast-inserting-tags/
The feature in question is done as Bruno mentioned, you can however type the tag name prior to pressing control + “less than” to use the current word as the tag name.