Eclipse syntax highlighting - eclipse

I am trying to add CFeclipse highlighting to *.js files but it is not working in the Luna version of Eclipse I try going to Window -> Preferences -> General -> Content Types and adding it there but the syntax highlighting does not appear. Any ideas?

Personally, I find the JavaScript syntax highlighting for CFEclipse deficient. I greatly prefer the syntax highlighting provided by JavaScript Development Tools, part of the Eclipse Web Developer Tools package provided by Eclipse Web Tools Platform.

Related

How to add HTML Editor to Eclipse?

I just upgraded to Eclipse Kepler, the non-J2EE version. The HTML Editor is missing. I read elsewhere that I could install the "Web Page Editor", which I did, but the system now generates all kinds of errors when building my project. Apparently it can't find some JSF classes. I have no interest in using JSF.
The Web Page Editor install did include the HTML Editor, but it was so much trouble I had to uninstall. How do I get my old HTML Editor back?
Alternatively, you can just install the "HTML Editor" from the WST package (the same one provided in Java EE Edition) in Eclipse 4.x, just by looking for "HTML Editor" in the marketplace (but, indeed, i haven't been able to found it in the "install new software").
On my side i prefer to work on Eclipse "Java Edition" most of the time (just adding the few additionnal features i really need).
Go to Install New Softwares-> Select your version eclipse repo. eg Mars - http://download.eclipse.org/releases/mars -> Expand Web,XML, JAVA EE option -> Install Eclipse Web Developer Tools
I have used CodeMix for a while and it's a wonderful tool, it can easily install as a plugin and a wide tools will be available like HTML Validation, Emmet, CSS IntelliSense, Snippets, take a look in this site https://www.genuitec.com/sox/tech/html5-with-codemix/
I had a similar issue once, and I tried a HTML editor addon for eclipse, but haven't found one that's any better than the one that comes with the Java EE edition of eclipse.
I suggest you download the Eclipse IDE for Java EE Developers.
You may want to install Eclipse Web Developer Tools
Bet you after edit HTML you will have to edit CSS and JavaScrip too

CDT on hover show documentation

In JDT, if we hover any object, like a function, class, variable etc, eclipse shows the documentation in a tool tip. This documentation is also displayed when the code-assist window shows the possibilities.
However, CDT does not work like this. By default, it shows the code of the hovered object. There's a setting in Window -> Preferences -> C/C++ -> Editor -> Hovers, to choose Documentation to be displayed, but unfortunately it does not show anything. Also there's a project called libhover, but it seems it does not work with in-code doxygen comments.
Is there any solution to mimic JDT hover behavior in CDT?
Install LinuxTools plugin to Eclipse C/C++ IDE
Help / Install New Software... / Add...
Name=Linux Tools
Location=http://download.eclipse.org/linuxtools/update-3.2
Check for updated LinuxTools location url here
Install following packages, restart Eclipse after it's done.
C/C++ Library API Documentation Hover Help
Libhover for Newlib Feature
Library Hover help for devhelp documentation
You should get tooltips for C standard library functions such as malloc, memset, printf. I just did this for Eclipse Luna (4.2.2) with MinGW-builds_64bit in Windows 7.
I don't know what happens in C++ projects I guess it needs Doxygen tricks which I am not familiar with.

Eclipse Javascript Editor with Code Completion

Am looking for a plugin that will allow me to have code completion is my phonegap .html file and also highlight the javascript tags. I have installed the JSDT plugins but can't seem to have the code highlighting/autocomplete. It highlights only the HTML but doesn't seem to work for the scripts inside the <script> tag.
You can have a look in eclipse at
Help -> Install Software
Work with... Select your eclipse version (e.g. juno)
In the selection box below scroll to the entry "Web, XML, Java, ... " and expand it.
Select
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Developer Editors and Tools
JavaScript Development Tools
Web Page Editor
and then Next to install them.
Now you should have HTML, JS syntax highlighting and code completion.

JSP editor for eclipse, does it exist?

I noticed that my Eclipse does not include JSP Editor. Does standard JSP editor exist for Eclipse and if so, where can one download it from?
The JavaEE version of Eclipse has full JSP support. The standard java development version doesn't.
Alternatively, you should be able to install the WebTools plugin(s) into an existing Eclipse, that should give you JSP support also.
I had this same problem!
I resolved it by switching my eclipse perspective to JAVA EE perspective.
Go to help -> Install New Software and install webtool.
And for whomever that still not seeing the editor, set JSP editor to be the default editor for JSP files in this way
Having the same problem, I researched this and I found many solutions. After installing the Web Tool PLug-Ins, I was able to get the .jsp editor to work. Its important to know that you must close your .jsp files then reopen it, or you may be convinced that the solution didn't work. You can confirm that the Web Tool Install worked if you go to the following:
Window -> Preferences
In the list of options, you will see General. Expand that menu.
Expand the "Editors" menu
Click on the option "File Assocations"
There will be a "file type" (I'm using Keleper) with a list of different file types.
In this list, select .jsp.
In this list you should see a list of editors. Select JSP editor. Then click OK.
This is something I discovered when trying to get mine to work.
Go To Preference->General->Editors->File Associations
Check editor for *.jsp type.
If it's not present, add one.
If it's Class file viewer, then remove it.
Worked for me.
To install from within IDE for newer Eclipse clients:
Help->Eclipse Marketplace
Search for "Eclipse Java EE Developer Tools". Install.

eclipse / aptana - text compare show code syntax highliging

I am using Aptana 3 which is basically a modified version of eclipse, so i think this question is applicable to both
Before I commit code in I like to review my changes via the text compare. It allows me to double check things I have changed.
However although text has been highlighted for changes made it does not keep the php syntax highlights. Is there anyway I can keep the PHP or whatever syntax highlighting when viewing differences?
See screenshot.
This is something that a plugin author must implement, and, it seems that it's still not implemented for Aptana's PHP editor, so, the proper thing to have that would be reporting this as a bug to be fixed in a future Aptana Studio 3 version.
This is a feature of the Eclipse editor. Perhaps you can try opening the file in another editor. Right click on the file and go to open with and choose different PHP Editor.
I am not a PHP programmer but perhaps you can check these links to see if you can find and alternate plugin with the features you want.
http://eclipse.org/proposals/php-ide/
http://www.phpeclipse.com/
First of all, Aptana is not "a modified version of Eclipse". Aptana is based on the Eclipse Platform. I am using the Aptana Studio 3 plugin for Eclipse (3.7.1; because of PyDev and features like "Local Filesystem"). ISTM that this is a problem with the Aptana PHP Editor, which the Eclipse PDT editor takes preference over in Eclipse (that might be due to the fact that I had installed the PDT plugin first).
You can try to work around this if you install PDT in Aptana Studio 3 (if necessary and possible), and define the PDT editor as default for PHP files (in Eclipse, and perhaps Aptana as well, it is under Window → Preferences → General → Editors → File Associations). You can also report this as an Aptana bug. Or use Eclipse with the Aptana Studio 3 plugin in the first place; IMHO, most Aptana editors, including the Aptana PHP editor, are not much of an improvement over the "built-in" Eclipse editors.
The issue has been repotorted on aptana bug tracker (by me) and apparently it is going to be fixed with 3.1
the bug tracking number is APSTUD-3922 for anyone who is interested