Suggestions for spell checking HTML with Aptana plugin for Eclipse - eclipse

I'm using the Aptana plugin for Eclipse to do web development. Apparently spell checking is disabled in Aptana for performance reasons (see https://aptanastudio.tenderapp.com/discussions/questions/140-invoking-the-version-20-spell-checker).
Currently I drop to a shell and run a script that in turn runs aspell on all my *.html files, but occasionally I forget to do this before I publish. I've tried adding my script as an "external tools" command, but aspell doesn't behave nicely in an Eclipse console window. Besides, I still might forget to click it before a publish.
Ideally, I'd like to insert some sort of hook that would run this script before I trigger a file synchronize command, but I would appreciate any other suggestions to trigger an automatic spell check process.

My approach has been to publish using the command line only, that way I can sneak my spell check command in every time before I publish. I installed an "Open in Terminal" plugin for eclipse that makes it convenient to drop to a shell at the root of the web directory then execute this command.
I hope this is helpful to somebody.

use a separate spell checker
I'm using tinyspell and aptana studio 3 (it can check spellings as you type)
see this http://tinyspell.numerit.com/

Related

Copy and Paste mouse shortcuts in Git Bash terminal in Eclipse

The text cannot be COPIED by double-clicking and PASTED on right-clicking when working on Git bash in Eclipse, similar to the usage in Git Bash Windows application, which saves much time.
Is there any solution or best terminal alternative integrated in Eclipse?
That does not seem to be supported by the Terminal component, part of CDT since Eclipse 2020-03, with code source now in org.eclipse.cdt.git/tree/terminal.
No issue has been mentioned in this bugzilla list, which means you would need to create one to mention this use case.

New to Aptana, two questions on deployment

I've moved to Aptana from DW (mainly to get better Phonegap/Android integration). I'm using Aptana integrated into Eclipse (i.e. installed Eclipse and then added Aptana).
I have two questions.
How can I configure Aptana/Eclipse to copy files to my local development server when I want to test? I can clearly do this in the filesystem outside the IDE, but would like it inside on a button or menu.
How can I configure the process to use, for example, the Google closure tools for js and css as part of my build/deployment process? I'd like to automatically minify the js and/or be able to use the css extensions offered (variables).
I get the feeling that all this should be possible since Eclipse is so configurable, but I don't know where to start. Would Ant do this for me? How?
Would appreciate some pointers.
Thanks
Abo
I can answer your first question.
If you have the Aptana plug-in installed, you will have an option on your right-click menu titled "Deploy". Expanding the deploy setting will reveal the option to "Run Web Deployment Wizard...". From here, if you are using a web server as mentioned, you will probably want to choose the FTP/SFTP/FTPS option. Fill in the form with your servers information and be sure to run a test to make sure things are working properly.
I always check the "Automatically sync my changes with the remote site" box and then select the "Automatically sync in both directions" radio button. This will automatically deploy my current file to my web-server upon a save.
You may also want to only select the "Automatically sync from my machine to remote site", the reason I choose both ways is because I sometimes work from different machines and it helps me keep things in sync. A little tweaking and it should save you a lot of time and effort!
[Using Indigo Release 1, and Aptana Studio 3]
Aptana don't include support for "Google Closure", you can instead use "Eclipse" or "WebStorm".
I hope below links will help -
http://www.daveoncode.com/2009/11/23/automatically-compile-javascript-applications-using-google-closure-and-ant/
and this stack exchange thread -
Google closure compiler usage WebStorm

Bind Ant target to "Build Project" in Netbeans?

I just started using Netbeans for my PHP projects. I'm using Netbeans mostly for the xdebug functionality. I have a script that I run through the PHP CLI to "build" cached files.
Currently the "Build Project" and "Clean and Build Project" options are grayed out. I would like to make these actions run different scripts.
I figured the Ant plugin would be the best way to go, but I can't seem to figure out how to bind the target to this action.
Anyone know how to do this? If there is another way I'm not tied to Ant, I just want to attach shell scripts to those actions.
This seems to be a limitation with the PHP plugin. There is a bug report here that provides a patch to add this functionality. I'm not sure how to apply the patch though. There is a comment on this bug report that suggests an optional plugin may be created. If you want this functionality vote for it on the bug report.

Is it possible to add external command line tools to Netbeans?

Is it possible to use external command line tools in Netbeans?
Thank you.
After searching and searching and searching, this feature is just missing in netbeans although it would absolutely straightforward to implement and has been ask by user for 2 more than years...
Regards,
Stéphane
There is a Terminal window in NetBeans 7:
Open the menu, Window -> Output -> Terminal
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
The best option I've found is to use jmarsault's plugin that he calls NetBeans Command Shortcuts. This give you an icon in the command line where you can add command and terminal scripts to run. The display shows in the output window.
Installation files are available here and he has kept it up to date with the newest versions of NetBeans.
NetBeans Command Shortcut plugin
Installation:
Download the .nbm file for your version of NetBeans
Open Tools / Plugins / Downloaded / Add Plugins...
Select the .nbm file and allow the installation of the plugin.
In since at least version 9.0, there are two decent options:
Just create a script file. (I think you need the C++ plugin for this. Otherwise you have to create it outside NetBeans or as a text file.) In my case I created a JLinkGDBServer.sh that just executes JLinkGDBServer as a prerequisite to start an embedded debug session. This automatically sends the executable's output to a NetBeans terminal.
Add a tool to Tools/Options/Miscellaneous/SendTo. SendTo is a pop-up menu item for certain project entities, for example files but not the project. In my case, I could add a SendTo running the executable and use it by right-clicking on for example the .elf file (although for the GDB server I don't need any file name as an argument).

How do I enable undo in eclipse ant editor?

Undo is not working for me in ant editor in eclipse.
When I press Ctrl-Z nothing happens.
Is it possible to enable undo somehow or is this a bug?
I am using Eclipse 3.4.2 (Ganymede) on Windows XP Professional.
Yes undo should be working perfectly in an ant editor.
For Ctrl-Z to not workcould mean:
the shortcut has been assigned to another action (Windows > Preferences > General > Keys)
the undo buffer size is somehow at '0' (Windows > Preferences > General > Editors > Text Editor)
a plugin somehow 'steals' the key event for itself
Try a fresh install, and check also with a latest Galileo (3.5RC2) install to see if the problem persist.
Note: zvikico mentions the existence of a known bug with ant editor in 3.4.2
After a quick search, the following bugs might explain your situation:
267780 [ant editor] delete line cannot be undone after cursor has been moved
247434 Failed to undo removal of line in Ant editor, only with 'Eclipse IDE for Java Developers', with Eclipse Classic you don't get this behavior
and finally:
239115 Undo functionality does not work anymore in the ant editor, mainly because a WTP issue, only solved in 3.5
I see this post is very old, but I am adding a response for the people who find this through the search engines.
Ctrl-Z stopped working in eclipse for me when I made a small change in one part of my code which in turn triggered an unexpected infinite loop in a different part of my code.
I used the windows task manager to kill the application that I had been testing when Ctrl-Z had stopped working, and then I used system.out.println() to identify the part of the code where the infinite loop was being triggered.
I then disabled that section of code, which in turn caused Ctrl-Z and everything else to start working again.
I was able to finish debugging from there.
If the CTRL-Z (undo) does not work anymore, you might try that. It worked for me:
go to Preferences -> General -> Keys and click on apply button or restore defaults button