Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Implementing a formatter
Implementing a formatter [message #68648] Fri, 11 April 2008 04:56 Go to next message
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
hi all,

I have to implement a formatter and I found more than one choice to do that

I found two method to do that : getContentFormatter in the source
viewer and sources->format (CTRL+ALT+F) so with a action etc....

what the difference?? is CTRL+ALT+F use getContentFormatter?? or is it
two thing totaly separed?

thanks

a++
Re: Implementing a formatter [message #68664 is a reply to message #68648] Fri, 11 April 2008 10:19 Go to previous message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.jp

Are you talking about PDT?
Do you intend to implement your own formatter for PDT?
If so, you should implement formatter by extending
org.eclipse.php.ui.phpFormatterProcessor extension point. PDT invokes your
format(IDocument document, IRegion region) method. See extension point
description.
Previous Topic:Hanging on windows, why? tips for avoiding?
Next Topic:short tags
Goto Forum:
  


Current Time: Sun Jan 29 20:16:32 GMT 2023

Powered by FUDForum. Page generated in 0.07073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top