Eclipse Javascript Editor wrong string recognition with Reactjs syntax - eclipse

When I write jsx in following format in default Javascript Editor, slash and grater than signs are interpreted as string. And when I press enter at the end Eclipse automatically adds " + "
I am using Eclipse 4.3.0.
How to fix this?

Disclaimer I'm the author of typescript.java
I suggest you that you install typescript.java 1.1.0 which provides a JSX support inside Eclipse. It provides a JSX Editor with syntax coloration for JSX (and JavaScript):
Validation, Hyperlink, Hover, Completion is done by using TypeScript tsserver:

It seems like there is not yet eclipse plug-ins to properly handle JSX syntax in eclipse.
There are plenty other IDEs that does support JSX:
Sublime Text
Webstorm
Vim
Atom
IntelliJ IDEA

Related

JetBrains plugin for writing (markdown and latex) in a markdown file

Does a JetBrains plugin exist for writing (markdown and latex) in a markdown file?
Of course, the plugin also has to render and show the result.
IntelliJ renders markdown files without any plugin. You just need to create a .md file and the IDE will render your code as you go on a side by side window

Sublime Text: Untitled document, variables autocompletion?

It's my first day using Sublime. After simple test, I could not find this function: for a newly created document, BEFORE saving, Sublime seems to be not able to remember variables I've inputed, thus can not autocomplete.
Am I wrong? Any plugin to fix this?
There are a bunch of sublime text plugins available online to help you get rid of that problem. It depends on what kind of plugin you wanted and for what purpose.
These are some of autocomplete plugins available:
SublimeCodeIntel
Auto Close HTML Tags
All Autocomplete
Note: Before you can add plugins, You need to first install Sublime
Package Control. Check here

How can I enable IntelliSense for JavaScript inside HTML?

I want to use VS Code to try out the examples of a JavaScript book, but there's no IntelliSense, or at least I don't know how to activate it.
In Visual Studio this feature works out of the box :
But in VS Code, all I got is a message saying "No suggestions."
What do I need to do to enable IntelliSense in VS Code?
Starting with the November 2016 (version 1.8) release, Visual Studio Code now fully supports IntelliSense for JavaScript in HTML.
Note that the language support doesn't follow script includes, it only knows about definitions made in the same file.
Currently Unsupported
JS intellisense doesnt work in HTML script tag - VSCode GitHub Issues #4369
Smart Javascript suggestions inside HTML files no loger working after Visual Studio Code update - StackOverflow
It worked for me, when the file had a .js extension. I didn't get any intellisense when I pasted it into .html file between script tags.
Edit To Add: You can also change the Language Mode by clicking 'HTML' in the bottom of the VS Code window and change it to 'JavaScript'.
It is supported!
Intellisense and syntax highlighting start working after replacing
<script>something()</script>
with
<script type="text/javascript">something()</script>
Make sure you have HTML language mode selected in the bottom right corner. I had Markdown mode set for an unknown reason (autodetect?) and it didn't work for me. Javascript mode won't work either for HTML files.
Visual Studio Code version 1.4.0 does not support CSS intelli-sense.
I have an extension for CSS style, id and class intelli-sense for html documents:
Features:
Style tag completion and hover.
Style attribute completion and hover.
Id attribute completion.
Class attribute completion.
Scans workspace folder for css files.
Supports optional resource.json file for fine tuned resource selection.
Link:
https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css

NetBeans. Disable error checking underline

How to disable error checking in NetBeans 6.9.1?
It is very annoying to have red line in the source code.
This is similar to NetBeans - Turn off - wavy red underlines - How?, but I want to disable underlines at all, not only when typing.
(It incorrectly parses PHP sources and omits syntax errors.)
Netbeans has a vast array of settings but this might do it. Try changing the drop down labelled "Wave Underlined" to "None":
Update:
Since I don't do PHP development I wasn't originally aware of the PHP plugin for Netbeans. You can find it listed in the plugins (Tools > Plugins) for Netbeans and should provide a much better environment for PHP work, with, I'm assuming, better PHP parsing and syntax highligting.
I would just click on the hint on the left side by the line numbers, it should create a pop-up, while that's still up click on the hint again. Now another pop-up will be there asking if you want to turn off the error check for either that single file, or for all files. Choose for that file, b/c it should be off by default.
I have no 6.9 at hands, but in 7.x (and believe so, for some time)
go to Options->Editor->Hints-> and uncheck
[ ] CSS (all those rules together)
[ ] HTML Validator (ditto)
Did the trick for me, when working with proprietary template files, 'coincidentally' named .html ...

customized PHP code formating in Netbeans IDE

Netbeans IDE has code format feature that can be launched using the "Format" item in the "Source" menu. how can I customize this "Format" operation so my formatted code will be in the style that I define. I could not find any special documentation in Netbeans Help or online WIKI.
Tools-Options-Editor-Formatting-(Language:PHP)
Don't forget to configure all categories (Not Tabs and Indents only)
I think right now this is our best bet http://www.netbeans.org/issues/show_bug.cgi?id=163030