Carlos,

Thanks for the reply. I found a shorter workaround by creating a template
for <code></code>, etc. I expand the templates then cut and paste the
text into the templates. I hope a selection variable makes it into the
final product.

Chuck

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Carlos Costa e Silva
Sent: Sunday, November 04, 2001 7:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [Eap-list] Live Template variable for current selection?



For now there isn't.

Workaround with more work that doing it by hand :)

Go to Tools->IDE Options->Live Templates

Edit the first template: '<'
Check the java comment option.


Now, when you want to htmlize a comment:

Select and cut the "comment" you want to wrap.
Press <+space+b+tab+control-v. result: <b>comment</b>

Sometime ago there was a suggestion for keyboard macros in idea:)

Carlos

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: segunda-feira, 5 de Novembro de 2001 00:31
> To: [EMAIL PROTECTED]
> Subject: [Eap-list] Live Template variable for current selection?
> 
> 
> Is there a way to define a live template variable for some currently
> selected text? What I want is a template that surrounds the selected
> text with the template. Specifically I want to be able to 
> select part of
> a Javadoc comment and surround it with <b></b>, <i></i> or 
> <code></code>.
> 
> I searched the documentation, but couldn't find much 
> information on this
> topic. There was a similar question and answer in the 
> archives regarding
> casts. The answer was to use ctrl-alt-T, but that doesn't seem to work
> in a comment context.
> 
> I just started using Idea today and so far I like it. I have 
> been using
> JBuilder for a few years and this is the first IDE I have found that
> may surpasses it.
> 
> Charles (Chuck) Simpson
> mailto:[EMAIL PROTECTED]
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
> 


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to