Open Chris2011 opened 7 years ago
It looks like this requires implementing the org.netbeans.modules.options.editor.spi.PreferencesCustomizer.Factory interface. The package is not public and can only be accessed by other modules that are part of NetBeans (see the <friend-packages>
list at http://hg.netbeans.org/main/file/tip/options.editor/nbproject/project.xml)
So unfortunately I don't think there's a supported way for a third-party plugin to add a new language to the formatting options panel.
Ok, thats a pity. Thx for the info.
FYI, NetBeans team is very friendly in making thirdparty plugins as "friend" to internal packages. You should drop them a message.
I can make that a friend if nobody else has started yet
I closed that issue in NB.org as a won't fix as Jeffrey said that won't work for older versions of NetBeans. I suggest using Yenta. https://bitbucket.org/jglick/yenta
Maybe someone can have a look into the community Ruby Project? http://hg.netbeans.org/community-ruby
Because I figured out, that the Ruby and Rails plugin, adds formatting options for Ruby and Ruby HTML (RHTML).
Anything new here? Maybe Yenta can be the option as @wadechandler said.
I'm also quite interested in that, as default formatting options (eg. no space in import statements) break my tests (linter reports this as error).
IMHO it should be finally part of NetBeans core, so this problem will go away.
As we know NetBeans have formatting options for JS, Java, PHP, and so on inside the options panel, where you can change a lot of formatting options. Atm NBTS use implicit JS formatting options and a special option which is available in java. It would be better and is a must have to have formatting options for TypeScript as an entry inside the options and with a lot of formatting options.
Cheers
Chris