As in the title, is it possible for a Babel plugin to extend the parser in order to add new keywords?
I am using #babel/core 7.
Nope, custom syntax is not currently something that we support. It has been deemed too difficult to implement and maintain in long the long run in a way that wouldn't make it hard for us to develop new features.
With plugins no, but You can fork babel parser and add the support for the custom syntax you need and override the parser on babel, check this interesting article Can a Babel plugin extend the parser to add new keywords?
Related
I want to add #draft-js-plugins/mention but at the moment it's not possible since one of the dependencies of this package is immutable js that use a very old version thus cause an issue in my project since I'm using the newest version. It's not possible to downgrade at the moment and so I'm wondering what are my other options? Is it possible to integrate DraftJS with other libraries for this feature only? Is it possible to build a custom 'Mentioned' feature? How can I integrate it with Draft?
Any recommendations and examples will be very much appreciated
#draft-js-plugins uses the same version of immutable as draft-js. So your problem would be draft-js which is using immutable#3.7.4.
See also: https://github.com/draft-js-plugins/draft-js-plugins/pull/1710
I solve the issue by using the 'react-draft-wysiwyg' package that was written on top of DraftJS and contains all the necessary plugins. A simple implementation that solves everything
In https://stackoverflow.com/questions/12989859/what-is-the-best-ide-for-angularjs
Tonte Pouncil mentioned that it's possible to add angular.js as a library in jsdt-jquery. How does one go about doing this? thanks!
If you install https://github.com/angelozerr/angularjs-eclipse, you will benefit from
AngularjS features, in other words completion, hyperlink in HTML editor and Javascript editor.
jQuery completion because AngularJS Eclipse is based on the Javascript Inference engine tern.js.
Actually it is possible to add libraries to JSDT as well. I am not aware of such libraries. But there is angularjs-eclipse Eclipse plugin, see https://github.com/angelozerr/angularjs-eclipse
I am trying to write a CodeRush plugin that works similar to the XML Doc Comment Painter.
My plugin, which uses a TileVisual adornment, works fine for decorating comments in C# files, but does not work for comments in F# files.
How can I specify that my plugin should be enabled for F# files?
Have you checked this thread? One of the guys there suggests that
CodeRush is working in F# editor. At least some code assistance and
code templates. But code templates are not defined yet (you have to
create your own).
If you need help with your own plugin, I think you should better contact Devexpress support.
F# language is not supported at the moment, unfortunately. So, you can not enable the plug-in for this language.
Groovy seems to fix a lot of the things I dislike about Java, and I was wondering if it would be possible to actually write an Eclipse plugin in Groovy instead of Java.
Does anyone know if this is possible, and if so how to go about it?
I've just found a blog entry which says it's not officially supported but is actually possible.
Not yet tested to see if it works, but it seems promising:
Writing Eclipse plugins with Groovy, by Jörn Dinkla
#Peter, I do not think that the blog post you linked to is complete or if it will really work. It is pointing to the old version of Groovy-Eclipse, which is no longer supported and is out of date.
Yes. It is possible to create your own plugins in Groovy.
First, install the Groovy-Eclipse plugin from here:
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/
Then you can create a new plugin project and add the Groovy Nature.
Remove the Groovy Libraries classpath container
Instead, add the org.codehause.groovy as a required bundle
Create your Groovy code as normal
Now, the tricky part is exporting the plugin using PDE. See this blog post for how to do that: http://contraptionsforprogramming.blogspot.com/2010/08/groovy-pde-redux.html
One important thing to note is that you will need at least one Java file in your project for PDE to compile anything, It can be a dummy, empty file (this is a bug that has not yet been fixed).
Rejoice!
As an example, here is the codenarc Eclipse plugin that was written completely in Groovy:
http://sourceforge.net/projects/codenarceclipse/
You can also use JRuby, or Javascript ...
JAM Circle is a great example showing how to make great use of a scripting language in an Eclipse plugin, by allowing the end user to write his own actions and load them at runtime.
There's a proxy-like plugin that allows you to implement the plugin virtually in any language that supports JSR223 (javax.scripting)
This may seem like seem like a bit of a weird/uncommon request but I am trying to find out if it is possible. I would like to add to the language syntax in Netbeans or Eclipse easily without needing to create an entirely new language. According to this question How to add more syntax elements for eclipse it is not possible in Eclipse, but that was asked in 2008 so maybe things have changed.
The reason I want to do it is I am developing in node.js and it uses callbacks quite heavily. So it would be nice if I could make the word 'callback' and 'callback()' be highlighted in a different colour so it can be easily seen in amongst the rest of the code.
Thanks for your help!
The css thing is really easy:
go to Options/Miscellaneous/Files, create new file extension less and then select proper MIME type text/x-css. I Believe that it is possible to extend syntax highlighting in NetBeans IDE but you have to write your own plugin to do that.