I have some javascript files with .php extension. When I open them in Netbeans I'd like it to highlight things as if it were a .js file. In Notepad++ I can just select the language in the menu and I'm good to go. Is there a similar feature for Netbeans?
I don't want to change the highlighting for ALL php files, and I don't mind if I have to reselect the language each time I open the file as it's only one or two files. Thanks.
Yes, It is possible for simple step.
- open NetBeans
- select tools tab
- select tools->options->fonts & colors->syntax->language
- select a language as per need and change the color of it
Related
I have color bracket and it works great in js files where you can clearly see the nesting of functions etc.
I want that same thing but in the HTML file so the ident would be colored.
So now I'm actively in the ul indent and I want it to be colored:
Is it possible to change in the setting or a special extension? tried Googling but didn't see something like that.
You can use the rainbow tags extension. To install it, just simply do Ctrl+P and paste ext install voldemortensen.rainbow-tags inside the box.
I need a super-simple file manager (preferably in classic asp but not a deal breaker) that I can add to Tiny MCE v3.
It doesn't need to upload, show images or other media, just documents such as .pdf, .doc, etc.
I just need to allow the user to click a browse button beside a the link input box which will open the file browser window to the specified folder (always the same one), click the required file, the details of which will populate the input box.
I've seen a few as recommended elsewhere on Stack but these are either image/media only or I'm not bright enough to make them work properly.
Thanks in advance.
I forgot to update this question.
I found a TinyMCE/CKEditor plugin that really did the trick. It's called (surprisingly) PDW File Browser for TinyMCE and CKEditor and can be found at http://sourceforge.net/projects/pdwfilebrowser/.
It has a good range of different features and is really easy to modify (it has to be because it's me doing the modifications).
Definitely worth checking out.
When I use Aptana in Eclipse, I like the Cobalt theme for my Javascript. However, this theme ends up making my SVN diff-ing nearly impossible for my Java files, because the background is dark blue, and the text is black in the compare editor.
I've look all over the preferences in Eclipse, and can't figure out a way to only use the Aptana Cobalt theme for editing my Javascript files.
Here are the things I've tried:
- I've made the Aptana JavaScript editor the default for ".js" files
- I've made the default for ".txt" and ".java" the normal editors (non-Aptana, whatever they are)
- I've tried setting the theme, and making sure that General > Appearance > Colors and Fonts still has all the defaults
- I've verified that if I changed the theme to something with a white background, my diff-ing editor gets changed and becomes readable
What else can I do?! I just want to use Aptana for Javascript, not my default diff theme.
I had the same problem. No idea wether it has been resolved yet, but I found a temporary solution which might help. I changed the default editor for Javascript in Preferences > General > Editors > File Associations. When you select ".js" from the upper list, you'll see all the possible editors in the bottom list. I made "Javascript Source Editor" my default editor. This editor uses the default theme settings.
There currently isn't a way to achieve this. I would suggest to create a JIRA ticket at http://jira.appcelerator.org/browse/APSTUD.
I am trying to show occurences when browsing .js files in Eclipse (just simple occurences like it does for C).
For example, if I highlight myVar, then Eclipse should show boxes in a ruler where other occurences of myVar occur in the file.
I've gone into Preferences->General->Editors->Text Editors->Annotations multiple times, de/selected and applied changes to Javascript Occurences, Occurences(com.aptana.ide.annotation.occurences), Occurences(org.eclipse.jdt.ui.occurences) all to no avail(C occurences continue working perfectly on .c files).
I've opened .js files in default Javascript editor and in Aptanas .js editor with no results.
Even really dumb show of occurences which would show any selected text(var, null, etc.) would be great.
Additional information on workspace: Eclipse 3.5(didn't work on 3.4 either), Ubuntu 9.04, CDT, Aptana, Subversive, and some other plugins. .js files are from a large non-web project.
To circumvent your problem, you could use the JSEclipse plug-in (http://www.interaktonline.com/Products/Eclipse/JSEclipse/Installation-Update/). It supports occurrence markers, code completion, etc.
I have the eclipse setup working pretty well for the java files in my code. But now I want to integrated the JS files also, leaving other XSLs/CSS files. Can I do that?
One is adding all the folders and then manually delete the unwanted ones, but Is there some clean way of doing that?
-Prtcl
You can
reference the JS folder in your workspace (without actually copying it): see linked folder.
then try adding a filter (in the package explorer, in the upper right corner of the view, there is a little down arrow, with a Tool tip saying "view menu": Java Element Filters)
If you do not want to view any xsl/css file, try to hide then to the "Name filter patterns" list