"Toggle Comment" for .htaccess files in Netbeans 7.x? - .htaccess

Is there any way to get the Toggle Comment command working for .htaccess files in Netbeans 7.2? I already got used to the according keyboard shortcuts in php, css, js and css files. As syntax highlighting is supported in 7.2, maybe it's possible to achieve that by changing the config?
EDIT: I am not limited to Netbeans 7.2

Are you strictly limited to Netbeans v7.2? If not, you can make use of the latest builds. It was announced earlier.
https://blogs.oracle.com/netbeansphp/entry/toggling_comments

Related

Eclipse config locations on linux

I'm using eclipse Mars.1 JEE with CDT on CentOS 7 Gnome Classic and I'm wondering where eclipse saves configs and plugins. The reason is that I had the following problem and I'd like to understand.
I installed a plugin to apply external themes (Eclipse Colo Theme) and I changed the colors. I didn't like the plugin and removed it but I didn't set the colors back. After some time I found code snippets which where not readable because of the colors. But I forgot about the plugin and the changes I applied. I tried to solve the problem and looked for a solution but I found no solution. I downloaded eclipse, extracted it in the downloads folder and started it. The problem was there, too. And also my proxy configs. So I installed the plugin, reverted my changes and checked both eclipse folders. Both versions were fixed. So both versions check a central location on my system for configs, themes and plugins.
I found ~/.eclipse but it doesn't seem like there is a config. Are there other places were eclipse saves a config, even when I use a portable eclipse version?
Most preferences like theme, color and fonts, etc. are stored in the subfolder .metadata of the workspace.
If you switch to another workspace (File > Switch Workspace > ...) you will see, which preferences are workspace specific and which are not.
In some cases, the Restore Defaults button in the Preferences dialog (e. g. in Window > Preferences: General > Appearance > Colors and Fonts) can be used to restore the default preferences.

Uninstall eclipse plugin - linux

I'm developing an eclipse plugin and in order to test it I have to install it into my eclipse application regularly. However as I dont't want to change the version of my plugin every time I want to test a new feature I always uninstalled the plugin from within eclipse and afterwards I'd go to the eclipse folder and delete my plugin out of the plugins folder (and delete the respective entries in the eclipse XML-files).
That worked great in windows but I have recently switched to Linux (Mint) and I just found out that my plugin is no longer located in the plugins folder inside the eclipse program directory. Therefore I can't really delete the old plugin whcih then prevents the new version of the plugin from installing properly.
Does anyone have an idea about where eclipse copies the installed plugin or a differerent approch to actually completely uninstall (delete) an installed eclipse plugin?
Okay after searching through my whole filesystem I found it out myself.
Eclipse has a hidden folder in the home directory named .eclipse in which each installed eclipse version has it's sub-directory and in there there is also a plugins and a features folder that then contain the externally installed plugins and features.
It also contains the corresponding artifacts.xml.
I'm not sure whether this behaviour is specific to the Linux Mint OS or rather a new "feature" of Eclipse Neon but if anyone is having the same problem that's were I found it.
Help -> Installation Detail.
Then click the plugin you want removed then press "Uninstall...".
Note: there is a "Plug-ins" tab in the Installation Detail dialog. This is misleading; you are not to click it.
Ps. It might be easier to test the plugin, during development, on a run-time workbench.

Symfony and PhpStorm twig gives me no suggestions for twig functions

I have Symfony projects in both version 2.7 and 3.1. PhpStorm has the Symfony Plugin and Twig Support plugin enabled.
When I work in the Symfony 2.7 version PhpStorm with give me suggestion for Twig output tags {{ }} like assets and dump etc.
The 3.1 version gives me no suggestions. Does anyone have an idea?
Configure the project like that (File => Settings => Languages & Frameworks => Symfony):
And Restart phpStorm.
Dont forget to install symfony plugin
in addition to #adashbob's answer.
make sure that the file mappings in the symfony plugin settings are correct.
2.7 and 3.0 use a different location for cache files.
2.7 - app/cache
3.0 - var/cache
the plugin isn't intelligent enough to know which version youre running.
You usually need to trigger the AutoComplete pop-up yourself by pressing CTRL + SPACE (this might be a different shortcut depending on your keyboard).
Check your file -> Settings -> Languages and framework -> PHP -> Symfony -> Activate the plugin for this project

Node IDE auto-complete and debugging

What IDE's support node auto-complete and can attach to the node debugger? I have used Cloud9 which does work well for node, but since it is hosted on its own servers it cannot access my private network. I have also used eclipse but the autocomplete is not very effective.
We are building an html5 website using node, it would be nice to have a good experience for CSS and html editing as well.
Try WebStorm by JetBrains. You can debug node in it and it has a nice autocomplete feature.
Here best IDE for Node.js with autocomplete and debugger
Atom with stylish coding and hundred of plugin
Brackets
Webstrom
Komodo
Eclips
I recently found CodeLite supports nodejs debugging.
Autocomplete works well for certain modules, but somehow does not work for other modules, such as Express.

Is there a NodeJS plugin for Aptana Studio?

Is there a NodeJS plugin for Aptana Studio?
At least for NodeJS code-assist
And perhaps a way to create NodeJS project
And local NodeJS debugging
We have no NodeJS support currently. If this is something the community is interested in, it'd be helpful to file a feature request and vote it up: http://jira.appcelerator.org/secure/CreateIssue!default.jspa
Since we are built on eclipse, you should be able to try out the instructions for NodeJS debugging on Eclipse, found here: https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger
As for special NodeJs projects, there's no notion of that. You would likely just create a normal Web project. We do have the concept of libraries that you can add to a project, wherein you could point to js files/libs for NodeJS. We also has special syntax files for describing JS libraries/APIs so it can be integrated into our content assist. A good example might be the ruble we have for jQuery which contains that file for two versions of the jQuery API. Here's the 1.6.2 version: https://github.com/aptana/javascript-jquery.ruble/blob/master/support/jquery.1.6.2.sdocml The bundle.rb up in the parent directory hooks up the file in the ruble/bundle.
My guess is that creating an analogous NodeJS ruble and building up an sdocml (xml) file that described the API would be the easiest way to get started. Sharing that on github and sending it to us would allow for others to contribute as well. There are docs for creating rubles here: http://wiki.appcelerator.org/display/tis/Creating+a+new+Ruble
UPDATE: Project URL is http://nodeclipse.github.io/
There is Nodeclipse.org effort. Current version is 0.11 see http://www.nodeclipse.org/history .
Recommended installation for Aptana users through Enide - Eclipse Node.js IDE
Features
Creating default structure for New Node Project and New Node Source File
JavaScript Syntax highlighting
Content Assistant
NPM support
Debugging - Breakpoint, Trace, etc... via modified Eclipse debugger plugin for V8
CoffeeScript support
Installing
Update Site : http://www.nodeclipse.org/updates/
Read also Hints (section Aptana Studio)
(source: nodeclipse.org)
Read http://www.nodeclipse.org/ for more & latest information.
I highly recommend using Sublime Text 2.
There are a few nodejs plugins as well as v8 javascript [Sublime v8] and standard ECMA-262.
This is not a direct answer to your question, but if you're looking for a good IDE for node.js, you should definitely try Microsoft WebMatrix 2. It basically does what you requested to do.
I was fed up of fighting with Aptana Studio and plugins and all this stuff... until I found out Sublime Text. Simple and wonderful.

Resources