Why Eclipse need node.js? - node.js

My Eclipse 2020-06 complained that it need node.js for some editor key features.
I installed node.js along with chocolatey and a lot of packages without any idea and I can't find any information about this on the web. Does anyone know something about this?
EDIT
I just found that my html style attribute has a color picker as below now. No clue if it is html editor feature added by node.js and curious that if I can configure (disable) it or not.
EDIT 2
I can't comment so I updated my findings here!
Just as howlger said, I also found there is "Angular language server" messages in my console window that is also discussed in another topic : Why are there multiple Angular language server tabs in my Eclipse console. I can just ignore it but some of my html with Thymeleaf template scripts reports error is really annoying me.
EDIT 3
Disable Angular Language Servers in Window > Preferences does not solve my issue in EDIT 2.
Another interesting situation is: Before I install node.js, my Eclipse editors LAG very often when I copy/paste or double click some text in the editor. It does not happen after node.js installation. Maybe finding node.js cause the LAG.

Eclipse Wild Web Developer which is included in some Eclipse IDE packages provides support for JavaScript, TypeScript, HTML, CSS, etc. via so-called language server and Node.js is required to execute these language servers.
Most of the language servers that are included in Wild Web Developer are written in JavaScript (or to be more precise, in TypeScript, which is then translated into JavaScript). In contrast to web browsers, the JavaScript that can be run by Node.js is more standardized and has an additional API, for example to read files.
With the exception of the XML language server LemMinX, the language servers that are shipped with Wild Web Developer are developed by non-Eclipse projects not for, or rather not only for Eclipse (the idea of language servers is to support a language, a framework or a format by having only one implementation for multiple IDEs and text editors, preferably in the language to support).
For a list of all language servers contained in your Eclipse IDE, see Window > Preferences: Language Servers.

Related

how to start using the framework foundation for sites and deploy the first project

I want start using the framework foundation for sites but after reading the DOCS (http://foundation.zurb.com/sites/docs/installation.html) I got confused:
Why I should use a package manager to download a bunch of html, css and javascript file?
Or is there something else in the pile?
I'm working on windows and I know what are more or less html, css and javascript, but I'm new to frontend framework.
Thanks for your attention.
Download foundation first here complete-f6.zip. Then use foundation.min.css and foundation.min.js (of course include jquery.js) on your page and you're free to use whatever is in the foundation docs.
Since you're new, I would recommend using Yeti Launch. Yeti Launch allows you to create a Foundation 6 project with a Basic or Advanced template. The templates use a package manager with everything wired up for you.
With Yeti Launch you get the benefits of a build system (browser reloading, page templates, minification/concatenation, include only the components you use, autoprefixes, etc.) and you don't have to use the command line if you're not comfortable with it.

Browser Extension the "Injected way" a cross-browser extension that include a JS from a distant server

I've found this nice article about the "injected Way", but the author never finished it :
http://hightechstartups.blogspot.ch/2012/05/different-way-of-developing-browser.html
I would like a bare bone cross browser extension, without any 3rd party extensions or framework (to be as light as possible and not dependant on a 3rd party) that would load Jquery and a JS from a distant server and the ability to load it before or after the page is fully loaded.
I've read a lot of topics about the subject, but since IE10, Chrome 26 and FF20 are out with their new cross-link limitations, i was wondering if somebody had ressources, source code or tutorial about the following requirements :
I need :
Cross browser extension supporting (IE 8+ or 9+ worse case, Chrome
26+, FF20+, Safari)
Ability to inject a single JS hosted on another server. Inserts a script tag that references a javascript file in the head of the HTML
page and then be executed
Not be dependant on a third party extension (greasmonkey) or framework (Kango, Crossrider)
Ability to load before or after the page is fully loaded
This method allows me to customise the browser extension depending on the user's location and it also avoid having updates as the JS is updated on each page refresh.
I'm aware of the downsides, but i would like to achieve this.
I'm aware of cross browser framework like Kango or crossrider, but both don't fit me needs.
The closest example i could find is this How can I run a <script> tag that I just inserted dynamically from a BHO
but it only covers IE and as i got very little Csharp experience, i would like to see a full example to understand it properly and learn from example.
I would LOVE to have a few examples, even if it's not cross-browser (IE being the worst part for me).
Thanks a lot for your support !
Update1:
About Kango and Crossrider, Kango is 2000$ if you want to use IE and for Crossrider you're required to be distributed and monetized by them.
I've managed to code for IE and Chrome, but i was looking for an "elegant" way and figured it was the best place to ask given the level of knowledge of people on this site.
For the installer i currently use NSIS, but i'll test Wix too.
Finally i guess the only way for me would be to learn C++ and .net to get it to work with IE, but if anyone could provide more source code it would be great to test speed and compatibility and discuss here what's the best solution.
Why do Kango or Crossrider not fit your needs? Both frameworks allow you to manipulate the page's DOM (which is what you want):
Kango: Adding content script
Crossrider: documentation, example code
If you want to code your own solution, take a look at the relevant documentation:
Content scripts (Chrome)
The Page mod Jetpack API (Firefox)
Injected scrips (Safari)
Injected scripts (Opera)
Internet Explorer does not natively support extensions. It took me about 80 hours to create a stable and reliable IE extension which supports cross-site AJAX, a (preference) storage method and injection of scripts as early as possible in any frames based on its URL. I developed and tested the extension with Visual Express 2010 on Windows XP and Windows 7, for IE 8-10 (the extension might work on IE6/7, but I decided to not support these ancient and rarely used browsers).
First, I wrote an extension in C# based on LiveReloadIEExtension (a sample IE extension, which in turn is based on this Stack Overflow answer - see also this blog post). It was functional, but it required .NET 4, lacked support of frames, and it's relatively slow.
So, I decided to write an IE extension from scratch in C++. A good starting point is available at http://www.wischik.com/lu/programmer/bho.html: Sample code for C++ BHO, which changes the document's background based on key/mouse events. I've also learned a lot by looking at other code samples on CodeProject, topics on the MSDN forums, questions and answers on Stack Overflow, lots of other blogs, and the MSDN documentation:
DWebBrowserEvents2 interface lists several events which you use to find an appropriate injection point.
Scripting Object Interfaces (MSHTML) lists even more interfaces. You'll be mainly interested in the iHTMLDocument, iHTMLDocument2, ... interfaces.
After creating the IE extension, you want to deploy it of course. I used Wix toolset to create a MSI.

How can Aptana help with Netsuite Client Suitescript development?

I found my way here from the 3-years-out-of-date page at http://suitesource.netsuite.com/s.nl/it.A/id.82/.f . I have the latest eclipse, with the Aptana plugin and the NetSuiteEclipse plugin.
Just exactly what does Aptana do for me? It's not altogether clear, and it seems Netsuite may have abandoned their end of it.
By far the best environment I have found lately with regards to developing scripts for NetSuite is to just bag the instructions given by NetSuite and go with Aptana Studio 3 (not Eclipse with the Aptana plugin) and then include the NetSuite plugin to allow for direct upload into NS as Jeff mentioned. Aptana Studio is basically just Eclipse for JS and some additional cool features, like built in color themes.
The only other step you need to do (and this is not mentioned in the NS help) is to place SuiteScriptApi.js (and maybe nlapihandler.nl.js) in the root of your main project folder. The above configuration will give you code completion/definition for JavaScript in general and SuiteScript. I forget where I got the files but you can search on SuiteAnswers for them.
The help really needs to be updated to include the changes in IDE's.
The aptana plugin is not Netsuite specific it is a plugin for javascript development and provides code completion for javascript. The code completion of the netsuite objects is limited.
The netsuite plugin to Eclipse allows you to upload your suitescripts to netsuite directly from eclipse. However there are some limitations as to the path of the uploaded files that I can't remember at the moment. It did not allow me to set the paths the way I wanted so I stopped using it.
Use Suitecloud IDE.
Created from Eclipse but customized for Netsuite API.
http://elibeltran.com/suitecloud-ide/
About once a year I try Aptana and I end up uninstalling it each time- recently I tried again for my third time and uninstalled it. In my experience the code completion isn't very good, it doesn't handle complicated inheritance situations, doesn't play well with object literal notation, etc. I don't have proof and I've uninstalled it so if anyone asks me for specific examples I can't produce them.
I always end up back with Eclipse classic (3.7 I think) and JS Eclipse (which is an abandoned plugin that Adobe bought from Interakt but it still works) It's fast and has decent code completion. Is it better than Aptana? I don't think so, but it's snappier and seems to require less restarts.
I wish I had better experience with Aptana, it makes me nervous that JS Eclipse is a ghost that will disapear here at some point. I maintain over 48k lines of SuiteScript in our installation, I REALLY could use a better tool! ;)
Try Visual Studio 11.
It has much better intellisense in my opinion (as long as you configure it with any libraries such as the SuiteScript API.js). It also works well if you are already used to Visual Studio from .NET development (including SuiteTalk web services).
Not really an IDE but here is some suggestion.
Use a Google Chrome debugger. When you are in Edit mode in a record (example: customer), you can use the suitescript API to get the object-tree, very helpful in developing client-side script in Netsuite and understanding how their API works.

Web editor question

anybody can recommend a good web editor to me?
page created in windows should be working ok in linux as long as firefox support it, right?
1.) Here you have a list with 10 free web editors for windows:
http://webdesign.about.com/od/windowshtmleditors/tp/free-windows-editors.htm
(the first one komodo it's pretty good at least the mac version I use)
Link
2.) OS and browser doesn't matter with HTML as long as you write (W3C compliant code).
In case of CSS & JavaScript some functions have different behaviors depending on the browser.
Notepad++
Firefox isn't the only browser used on Linux (I'm currently using Chrome). Fonts are something to look out for on Linux, so it's always worth testing.
I use the Telerik editor. It is not cheap, but it is very good. My users like it.
I am assuming you mean a content editor for use on your site.
I've used TextPad in the past. I also like Eclipse.
Are you looking for an editor with Syntax Highlighting then TextPad, KomodoEdit, NotePad++ are good.
Aptana Studio is also free and also provides Intellisense for HTML and Javascript editing.
If your page is W3C compliant, then it should be rendered well in any standard browser. Don't forget your DOCTYPE declaration.
The most suitable web editor depends on what technologies you are using.
If you are using ASP .NET, then you should use Visual Studio.
For Java (JSP), Eclipse is what you want.
If you are asking about a more general web editor (html/javascript) and you are more likely to be using php or Ruby, you really need to give a try to : PSPad. I have been using it for months, and it has a lot of cool features: from basic code editing to code verification etc. And yes, it's free! You can even add to it a lot of extensions.
For interoperability between navigators, you have to test your website on many of them as you can, be careful with Internet Explorer especially, here you can find some known CSS bugs that you may encoutner while running your pages on IE.
Alors I recommand you to use special tools that can do cross-navigator testing for you, like Browsershots.

Running C# app inside browser as a plugin

I have a small 2D game engine written in C#, using DirectX. Is it possible to somehow run it in a browser as a plugin? Like for example Flash and others, where you go to a site with a game and it will ask you to install a certain plugin and then you can play the game in the browser, with mouse and keyboard input.
I have searched around for hours and I still don't know what I'm looking for. I have so far primarily focused on Internet Explorer, but there are plugins, addons, extensions, etc I don't know what I need really.
Yes I think it is possible.
For example, I have an HTML page which includes an element like this:
<object id="simpleControl1"
classid="http:RenderTextProject5.dll#RenderTextProject.ScrollableControl"
height="300"
width="300">
</object>
The 'classid' attribute value has the following meaning/syntax:
RenderTextProject5.dll is the filename of a compiled .NET assembly
RenderTextProject.ScrollableControl is the qualified name (namespace plus classname) of a class which subclasses System.Windows.Forms.Control
I can then see the control being rendered in the browser.
I'm using IE (IE8, but it used to work with IE6 too), and I have the .NET framework installed on my machine (but I think I needn't have the RenderTextProject5 assembly installed on the client machine).
There may be some other caveats too (e.g. I needed to run in the Intranet security zone).
See Return of the Rich Client: Code Access Security and Distribution Features in .NET Enhance Client-Side Apps.
Look for Silverlight.. It is maybe not exactly what you need but it is a browser plugin capable of running C# code ;)
There is a relatively new plugin called Unity. It is a bit more complex, as it is a dev/3D authoring environment on its own, but uses C# as its language as far as I know. However I don't know if pure 2D programming is possible (well, may be worked around using ortho 3d?).
The basic version is free to download recently, maybe worth a check.
It is possible to run C# applications in a web browser without using plugins. For example, C# applications can be compiled into JavaScript applications using JSIL.

Resources