How to disable this Netbeans highlighting? - netbeans

I'm not sure if StackOverflow is the right site for this question but i don't think I'd get better help from other than developers here.
Basically Netbeans keeps highlighting scripting in ERB or HTML files. I tried to disable many things in tools -> options -> fonts & colors. But none worked.
Any one knows how to get rid of that? It appears on all themes.

Old Queston, but still relevant, (and in other IDEs as well). For Netbeans v8, you will find most of the old links / themes unusable. But there is a way.
Go to Tools -> Plugins and search 'theme' and you will get "Dark Look And Feel Themes"
The default that came up after a reboot did NOT have the ugly highlighting on scripts, and it is easy on the eyes (unlike the default theme), plus it has good color-highlighting for "html.erb" files. The controller code could use some work on the highlighting, but I can live with it.
And before anyone points it out - yes, official support was dropped by NB for Ruby. The community, however, has done a great job via plugins keeping the Ruby/Rails support working.

Related

How to setup a new language IDE

At work we are using a proprietary language and to program we are using Notepad++ with a simple code highlight. That is really annoying so, what I want to do is to invest some time to setup a text editor or an existing IDE to support my language.
I've googled a lot and there are so many options and before starting to work I wanna ask to you what is the best choice.
What I want to do is to have, like an IDE, a syntax highlight, a window with the function list tree, with the local function variables inside the same subtree, maybe text autocomplete (if I type "pro" I would like to see the suggestion "procedure" and if I press enter it will write for me something like
procedure "name" {
--code--
}
with the cursor on "name" ready to change it.
etc etc...
Can you suggest me the right path to follow?
Is it to keep using Notepad++? With sourcecookifier? functionlist?
Or I have to change to another text editor?
Or there is some famous IDE like Eclipse, NetBeans etc that allow to easily add my own language?
PS. my language is pretty simple, I don't have complex structures, is Pascal-like. Something like that:
variable int xyz
PROCEDURE asd
BEGIN
END PROCEDURE asd
I would recommend you to stay with Notepad++ and extend it with some plugins and configuration. This would be fairly quick and easy to set up and still give a big win, even though you might not be able to get all the nice features of something like Eclipse. But since you already know the Notepad++ it wouldn't require learning an entirely new tool.
Some plugins that I have found useful
Function List
Light Explorer
XBrackets Lite
There are probably a lot more that can be useful to you.
Notepad++ also got some built in auto-completion functionality that can be enabled in the settings.
Have you evaluated Eclipse XTEXT ?
What is Xtext?
Xtext is a framework for development of programming languages and domain specific languages.
The only IDE I have used for the last few years is Eclipse. There are lots of other IDEs available, also notable and popular is Netbeans. There are many others. It's important to note that all IDEs have their fans, but I can only speak to Eclipse.
Eclipse is a platform, which means it is an application on which you can build other applications. Eclipse provides a framework which you can customize and extend to produce a working application. It takes care of the user interface, preferences storage, modularisation using OSGi, and lots of other things.
Eclipse has facilities to support what you're looking for:
Syntax highlighting in the editor.
The Outline View provides function and variable listing in a tree
Autocompletion and Suggestions (activated by hitting ctrl-space)
Code Templates to fill out files and procedures etc.
The disadvantage is that customising and extending Eclipse to do what you want isn't trivial. Having written a language debugger for Eclipse, I can tell you that leveraging Eclipse's platform helped enormously, but there's a learning curve. You'd essentially have to be coming up with a new set of plugins to provide your highlighting, outlining, autocomplete suggestions and templates (I'm not sure if template support is built into the platform or not).
So I would say, unless you can find some sort of extensible editor for Eclipse - I know Aptana is extensible for tag-based markup - you are probably as well staying with your existing tooling.
Do explore the other IDEs though - I've heard good things about IDEA as well as Netbeans. :)
Good luck!
I can recommend SynWrite editor. Good support for external languages, fully customizable. (Editor of new lexers is there)

How can I use eclipse code style to highlight my code in wordpress

I'd like to use Easy Google Syntax Highlighter in my wordpress blog. Because often I will paste some java code in my blog. But I don't like the default style of Easy Google Syntax Highlighter, how can I use the eclipse java code style ?
Thanks
I recommend keeping an eye out for a good Pygments plugin for Wordpress.
The following URL is a blog post by Gwynne Raskind talking about a Pygments plugin she's made but has not released yet - it's currently pending clarification on licensing and the post was written just yesterday so it's definitely alive.
http://blog.darkrainfall.org/highlighting-source-code-in-wordpress-with-pygments/
EDIT: I know it's not "eclipse style" but to get Eclipse-style syntax highlighting you'll likely have to rewrite stuff on your own. Since Pygments highlighting is crazy-awesome I thought this might be a good alternative.
ANOTHER EDIT: If you use java, http://www.java2html.de/applet.html might be useful!
You may have to edit the language files, in the /Scripts folder. There appears to be no quick way to 'theme' it though and looking at the files it would be a time consuming process to edit the colors for each language.

Writing custom IDE on top of Eclipse

I wish to write my own Python IDE (just for the heck of it). I was wondering if I could use Eclipse as a foundation. This will save me from coding a whole lotta things (code editor, intellisense and so on).
To understand what I mean, please take a look at Visual Studio Isolated Shell. I'm essentially looking for something equivalent. Searching on Google hasn't helped. Is there anything like this available in Eclipse's case?
Yes. Eclipse is designed to have additional languages added and there is extensive support for this kind of plugin development. I'm surprised Googling didn't help - there's an entire site dedicated to a tutorial on the basics and a toolkit for developing such things

NetBeans as an editor for ColdFusion scripts?

Is there any known NetBeans plug-in for editing, formatting and colour-coding of ColdFusion scripts?
I am afraid not. Some people have hacked together very basic syntax coloring and proper comments, but no plugin, and no cfml support.
Your best bet is the eclipse based CFEclipse or Adobe's ColdFusion Builder beta.
Also if you like JEdit I've had good results with that as well.
I know you asked about Netbeans but seriously unless things have changed you are better off elsewhere.
Sublime Text 2 and Notepad++ have code coloring as add-ons (ColdFusion for Sublime and Netbeans), and you can get code completion for java functions, but you can't run the code like java in NetBeans, CFEclispse - mentioned above - can do that I think, but I have yet to get that to work (takes more time and devotion than I have to spare).
I prefer sublime because it's a little more customizable than Notepad++, but they're both great options, and lighter than Dreamweaver.
PS: Both Sublime and Notepad are free, but sublime wants you to spend $60, and reminds you every once in a while, which is kinda annoying, but I still use it over everything else.
I'm a big fan of IntelliJ IDEA. The ColdFusion plugin has its warts, but it's pretty good, as its Javascript, and I love the overall editor experience. It has support for tons of other languages too. http://www.jetbrains.com/idea/

Is there a simple, consistent way to change the color scheme of Eclipse editors?

I'm going crazy trying to get all of the editors to look similarly. It looks like there's a different color editor option for each file type/code type, which means it takes FOREVER to customize the view.
Add to that: each code/file type color option seems to honor the default set in the generic options only if it feels like it (seems buggy).
I'm currently using Eclipse 3.4.1 (Ganymede).
Is there a version that is less buggy or is there a more consistent way to change the text colors?
Barring that, has anyone gotten a Zenburn-like color scheme in Eclipse that would be willing to share?
I'm working on an Eclipse plugin for this:
http://marketplace.eclipse.org/content/eclipse-color-theme
It's by no means complete, but it does work quite well already.
It sounds like there isn't currently a good way of doing this because of the way Eclipse was designed: there's not a good, flexible, inheritable syntax highlight framework to bring consistency to everything.
While you can export & import preferences as Wijnand Warren's answer states, and that does work... kind of... actually going in and editing the preference files to make sure that you're only sharing color information is probably a huge pain in the butt, so not simple. Also, that still leaves the problem of finding someone who has put in the effort & time to create the syntax coloring in the first place.
Also, every time you add a new type of structured text editor (new language per year anyone?), you'll have to go back into settings & edit the highlighting for that language as well.
I have no experience developing for the Eclipse platform, but if someone with more experience would be willing to point me in the right direction (documentation, explanation of how things fit together, etc.), please let me know.
I've searched high and low for an answer to the same question and have all but given up. It is not easy to change the color scheme because, as you said, each language has its own options buried deep in the Configuration tree.
I've read a little about why 'themes' aren't available, and it has something to do with the complexity of Eclipse's XML storage technique. I'm sorry that I can't provide a real solid answer, but I just wanted to let you know that you're not alone in your frustrations.
I've been looking for this too and after a bit of research found a workable solution.
This is based on the FDT editor for Eclipse, but I'm sure you could apply the same logic to other editors.
My blog post: Howto create a color-scheme for FDT
Hope this helps!
Install the color theme plugin from http://eclipse-color-theme.github.com/update. It already consists of some good themes that you can use.
Then just go to menu Window → Preferences → General → Appearance → color theme to apply the themes.
You can download more themes from http://www.eclipsecolorthemes.org.