I know in notepad ++ this can be done easy by just using the language menu item then selecting your language.
In Aptana Studio 3 say I am working with a .tpl file from Open Cart. The source is all "greyed" out as it doesn't know its PHP code. How can I tell Aptana Studio 3 its PHP code?
Is this even possible?
Ive been looking for hours and cannot find anything :/
Thanks in advance!
To fix the problem for just this file, you can right click on it in the File Explorer or App Explorer and choose Open with... > PHP Editor (you may have to click Other to get to the PHP Editor option).
To make all .tpl files open in the PHP Editor, go to Window > Preferences > General > Editors > File Associations and add *.tpl file and choose the editor you want it to use.
Related
If I use the GNAT Programming Studio (GPS) to build a single file (Build target Compile file), the editor jumps to the first location in the file with a build warning/error.
It is possible to disable this behaviour using a setting?
Yes. That's apparently an "Advanced" feature, and a bit harder to find than other settings...
Open the Preferences dialog (Edit -> Preferences).
Next to the search preference... box, there's a menu icon. Click on it, and tick off the Show advanced preferences option. An Advanced category has now been added to the list on the left. In there, you will find a Jump to first location option.
In the Atom editor, I cannot browse the JavaScript code a la vim+ctags.
I have tried the atom-ctags plugin, but it didn't work. Is there any other plugin?
How can I do it?
ok.
$cd <src-dir>
<.ctags> is present in it.
$atom .
<opens the editor, 0.187 release> <atom-ctags is installed in it>
In .ctags, following tag is present: calcSplices .../binding/src/array-change-records.js /calcSplices/;" f lineno:255 type:Array function(?, number, number, Array[?], number, number)
I open the js file in the atom editor.
I go to 'calcSplices' function usage.
Right-click and click go-to-declaration.
It shows no symbol found. I expect it should focus to its declaration as specified in the ctags file. Thanks for reading. Awesome editor, hope to learn more
Other issue:
Instead of right-click + go to declaration, I press "ctrl+alt+down" to go to declaration, this time, editor hangs.
I see atom-process through 'top' command, its doing 100% CPU usage. I finally need to kill the process.
My .ctags file is ~11MB.
After upgraded aptana to 3.6 on mac, I meet a weird problem. That is: every time I open a new file, it shows correctly - for only 1 second, then it collapse all the codes automatically. This is so annoying so every time I open a new file I need to expand all and then start to coding.
Can someone tell me how to close this auto-collapse-all feature/bug?
That's called code folding, you can disable it from the preferences
It's enabled by default, but can be toggled in the language-specific editor settings.
Go to:
Preferences > Aptana Studio > Editors > [Language: PHP, Ruby, etc.]
In your specific language's editor deselect the 'Enable Folding' option
A simple usability question. So I got a Dreamweaver 8 (I'm kinda used to it by now) and I've just downloaded Notepad++. (Before that I used simple Notepad) What I like about these editors is that the PHP code appears in different colors. So if the colors are not right then you immediately know that you're doing something wrong.
But this works for only the files that end with .php
But Drupal's files end with .module and .inc etc... and it's often a nightmare to look for some comma or a single-quote that's messing up your code. So how can I make Dreamweaver or Notepad++ to show me the code in .module and .inc files in colors?
in notepad++:
Settings > Style Configurator...
Find PHP in the Language listing select it then add your desired extensions in the "User Ext :" field
leave the dot off and separate them with a space. you'll need to reopen the document after you save the change.
I created a Drupal 'user language' for Notepad++ so you can get autocomplete and sytax highlighting:
Here is how to install in the last post here:
https://drupal.org/node/326803
Enable clickable links : Settings**->Preferences->Misc->**Enable clickable link
Enable PHP Syntax Highlighting for .module files, .inc files and .install files by clicking Settings**->Style Configurator-> Click on the php extension in the left sidebar and copy and paste "module inc install" into the user ext box without the quotes of course and Save and close. Voila!
I understand that Aptana is built from Eclipse. I tried searching for the Package Explorer to enable viewing of .htaccess files inside the project but I can't find the Package Explorer.
Any help of the exact location on how to enable it will be excellent.
In Aptana 3 it's little down arrow > 'Customize View' > 'Filters' - uncheck .* files to show files like .htaccess and .* resources to show folders like .settings/
For Aptana 2
In the project view, click the little down arrow in the top right hand corner, click on 'Filters' and in here you can tick which hidden files you want to view.
For Apatana 3
See the answer by Frederick
...geez, it took me a while to find that damn arrow :) Sell below:
I'm using Aptana 3 on a Kubuntu 11.10 machine. In my experience, I had to select the little down arrow from Aptana 3's Project Explorer, then choose > Customize View > Filters and uncheck both *.files and *.resources to show the .htaccess file.
Either one, by itself, would not display the .htaccess file.