Ecplise "mark occurrences" in HTML editor - eclipse

I wonder why the option "mark occurrences" isn't available (the button is grayed-inactive) when editing HTML files (*.html, *.htm extension). Is there an option to enable this feature in HTML editor in Ecplise (i'm running Eclipse Mars.2)?

I had your same problem with Aptana's HTML editor, and was finally able to resolve the issue.
First check to make sure this option is selected (by Default in Aptana for HTML, it is not). Go to Windows -> Preferences -> Aptana Studio ->Editors -> HTML. The very first option needs to be checked: "Mark occurrences with background color".
If the above did not work, you could try checking to see if you also have an additional installed software in Aptana that might be causing a conflict (this is actually what corrected my issue). I did have an additional software program added to aptana (called "Colorer"), which unbeknownst to me was disabling this functionality. If you have similar add-ins added to your installation, and they are not crucial to your workflow, I suggest removing them if the first option did not fix your issue. Once I removed my add-in, my Mark Occurrences for HTML (and CSS) came back to life.

Related

Eclipse 4.12 comment out multiple lines in .gradle file with hotkey

Just installed a new version of Eclipse ("Eclipse IDE for Enterprise Java Developers", 2019-06 / 4.12.0) and I find that although the hotkeys Ctrl-Shift-C and Ctrl-/ work to toggle comments for blocks of code in .java files, as expected, this doesn't seem to work for my .gradle files for some unaccountable reason.
OS is Linux Mint 18.3.
Anyone know how one goes about tweaking this sort of functionality in Eclipse (i.e. so that this toggling also works in .gradle files)?
NB I also find that going Ctrl-Shift-L twice does NOT open up (as previously) the "preference page" (i.e. where you can edit key bindings). I hope they haven't messed up things here.
However you can still edit these bindings by going Windows --> Preferences --> General --> Keys. This shows no fewer than 20 (!) "Toggle Comment" bindings, with Ctrl+7, Shift+Ctrl+C and Ctrl+/. The "When" column includes things like "Editing Java Source" but also "Editing in Structured Text Editors", etc..
So I tried to add my own key binding with "When" at "Editing Text". No joy. Anyone at all familiar with this aspect of Eclipse functionality?
greg-449 has the right answer.
Therefore what you have to do is install the correct Groovy editor.
I in fact gave the answer about how to do this here in early 2018.
It has changed ever so slightly now (for Eclipse "2019-06"/4.12), as described in my update there.
When you install that Eclipse-Groovy editor it automatically applies the various normal editing functionality not only to .groovy files but also (out of the box) to .gradle files: syntax highlighting, toggling of comments, etc.
I did not think this worked and was about to uninstall it, then I tried selecting Open with > Groovy editor, Thought I would share a little more detail, thanks!

Make Task Tags Bold in Editor

In one build of eclipse (it is on a computer I no longer have access to), when I typed in a task tag like //TODO or //FIXME eclipse would bold this in the editor so it stood out. How can I turn this functionality on in Eclipse 4.2.2 with PDT?
I found the setting for this under Window-Preferences-PHP-Editor-Syntax Coloring. Strangely, I had to change the PHPDoc option, not the Task Tag option.

Eclipse JSF + facelet - opening and editing page is slow

When opening JSF page (JSF + Apache Trinidad + facelet) in Eclipse (Helios), Eclipse freezes for a few seconds before the page is opened.
Also when editing the page, code complete / syntax verification is slow - for example I type <tr: and again I have to wait a few seconds before I can continue typing or tr tags are display.
It is very annoying that I have to wait each time when typing opening tag and slows me down a lot.
I am also using custom facelet tags.
What to do to avoid Eclipse freezing / slowing down? Do I have to change any configuration to speed it up?
I tried using the XHTML Editor instead of the JSF editor, and the freezing seems to have stopped.
I right clicked on my *.xhtml file and selected Open with->XHTML Designer
Also, you could change the way *.xhtml files are opened by going to Window->Preferences, then General->Editors->File Associations. Select the *.xhtml extension from the File types: pane, and then select XHTML Designer in the Associated editors: pane. To make the XHTML Editor the default editor for *.xhtml files, click the "Default" button next to the Associated editors: pane.
Turn off hyperlinks in your editor by going to the following path
Go to Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking preference,
uncheck the option Open Declaration
I had this problems for weeks, and I've found a solution:
Install JBoss Tools > JBoss Web and Java EE Development > Visual Page
Editor (only this subpackage)
After you can edit XHTML files with:
Open with > JBoss Tools HTML Editor
It's faster and gives you a better page preview
Some profiling show that the slowness is due to
org/eclipse/jst/jsf/context/symbol/internal/impl/IJavaTypeDescriptor2Impl.class
Its related to org.eclipse.jst.jsf.common_1.2.2.v201101211220.jar of WebTool 1.2.2
The solution is to update to the last WebTool version
WebTool 3.6.2 update page
using Update Webtool Luna link
Adding metadata-complete=true to WEB-INF/faces-config.xml is a good way to prevent WebTool packages classes scanning, but AnnotationConfigurator.createFacesConfig must be modified !
For eclipse
Windows -> Preferences -> Editor -> File associations
then select XHtml.
After the selection there will be three options in the bottom window select HTML editor and click default. This solved the problem for me.
Please make sure to close all the opened XHtml pages and restart the eclipse.

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 ...

How do I get Aptana to recognize .jspf files?

How do I get Aptana to recognize .jspf files?
I'd like to have syntax highlighting for .jspf files. I'm sure there's a preference/config option or an xml file to edit, but I'm not finding it.
I assume it's similar to the eclipse process, so I'm tagging eclipse, too. If it's not, I'll remove the tag.
I hope this is what you mean but you can set your file assosiations in Eclipse usually like this (and yes, Apatana is Eclipse based so it should work the same way):
Window -> Preferences
Then
General -> Editors -> File Associations
Select *.jspf and move or add the Aptana Editor you want to use by default.