Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: Using templates in HTML editor
Re: Using templates in HTML editor [message #521676] Thu, 18 March 2010 04:34 Go to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
Copying this to the Web Tools group.

On 3/17/10 11:40 AM, Chris Gage wrote:
> I hope this is the correct place to ask questions about non-Java use of
> Eclipse...
>
> I am very familiar with templates in Java programming, and have saved
> myself hours of keying using them -- I am a terrible typist, so I need
> them.
>
> I recently have had occasion to edit some HTML pages and found there is
> a similar template capability.
>
> I am accustomed to typing the name of the template and then pressing
> ctrl-spacebar. But this does not have the same effect in the HTML editor
> -- instead it invokes a complete list of standard HTML tags in a huge
> dropdown. What is the correct trick?
>
> I am using Galileo, Eclipse Java EE IDE for Web Developers. Build id:
> 20090920-1017
Re: Using templates in HTML editor [message #523934 is a reply to message #521676] Mon, 29 March 2010 17:41 Go to previous message
Nick Sandonato is currently offline Nick Sandonato
Messages: 125
Registered: July 2009
Senior Member
Hi Chris,

The templates in the HTML editor work a little differently. Instead of typing out the template name and then pressing ctrl+spacebar, the templates will show up in your content assist list.

So to use a template, you would first press Ctrl+Space, and then filter the list down by typing out the template name. For example, if you press Ctrl+Space and then type "tab", you'll see two entries. One is the actual <table> element and the other is a template table.
Previous Topic:XML code formatter adds whitespace within elements per default
Next Topic:How to debug jspx files?
Goto Forum:
  


Current Time: Mon Jul 28 06:32:53 EDT 2014

Powered by FUDForum. Page generated in 0.02005 seconds