By default, the current Eclipse-based PHP IDE (
PDT) uses an indenting style based on One True Brace, and the upcoming
Zend Neon version happens to be also Eclipse-based.
For developers working with OSInet Drupal modules or PHP-GTK code, or anyone wishing to apply the
OSInet coding style, or another form of Whitesmiths / Symbian PHP formatting, Eclipse allows for customizing the bracing/commenting style by hand-tuning, or to make things simpler, by just importing the
OSInet rules for Zend Studio / Eclipse PDT.
Importing styles
exporting styles
Importing formatting preferences in Zend Studio Neon
It's really simple, at least in Zend Studio Neon: go to
Preferences/PHP/Formatter.Then click on
Importand choose the XML file with the conventions. If conventions by the same name exist, you will be asked whether to override them or rename the imported conventions. Apply, and you can now use them.Not sure how how this relates to the default PDT system, though.
Exporting formatting rules from Zend Studio Neon
It's pretty much like importing them: go to
Preferences/PHP/Formatter.Then click on
Exportand name the resulting XML file with the formatting preferences.Importing rules into PDT
Hi,
on PDT still no luck to import OSInet rules, does anybody know how to make it?
Thanks
Zend Studio for Eclipse > PDT
It seems this feature is only present when using the full Zend Studio for Eclipse, which is more featured than the basic PDT.
See the section about "Editor and File Management" at: http://www.zend.com/en/products/studio/compare