Development environments for google-chrome-extension - google-chrome-extension

Currently I am coding my google-chrome-extensions using a combination of notepad and the chrome console. I am 100% sure that there is a better way of programming these extensions. What environments are people using?

I'm using Notepad++ which works beautifully.
You might consider trying the crossrider beta to build cross-browser extensions. I've found the experience on Chrome superb so far.

Your preferred IDE (eg. NetBeans) and Google Chrome (you have to test on something, right?).

You might want to check:
NetBean 7.0 (They have a great version for web development that let you write HTML,CSS and JS with all the great code sniff/highlight/complete stuff)
Eclipse got some good version for web dev (PDT and others).
Notepad++ , UltraEdit, TextPad or any other good editor you like.
As for the debug, profile and test mode - you have the developers tool in Chrome that are excellent. You might want to check out this short video that give lots of useful tips:
http://www.youtube.com/watch?v=nOEw9iiopwI
Good luck!

Related

Framework for cross-browser toolbar development

I am looking for a framework with which I can create browser extensions (namely a toolbar), for all browsers (IE, Firefox, Chrome).
I have searched for a relevant solution, but none which I found were what I need:
CrossRider - no good since it can't be self-hosted. The same would apply to companies like Conduit, and nearly all other solutions I've encountered.
Kango - this does look exactly like what I need, but the license is too expensive IMHO.
Does anyone know a framework which will allow development - using js & html - of a cross-browser toolbar?
I've never tried it myself but I remember a colleague of mine talking about firebreath a while ago.

Google Chrome extensions

Is there way to run native C/C++/Obj-C within a google chrome extension, The official page says extension are like other web pages, as i see it there is no way except Native Client(NaCl). Is this technically possible.
I believe that you are looking for NPAPI plugins. Do not take lightly the warning, however:
NPAPI is a really big hammer that should only be used when no other approach will work.
Why does your extension need C/C++/Objective-C, exactly?
Re: OP comment
Check out this question!

Ready-to-use NPAPI-Plugin to launch external application?

I need to launch an external application from a Google Chrome extension. I need to pass a few parameters from javascript, wait until the external application is done and then use its output in javascript.
I did some reading and this should be possible using an NPAPI plugin (I only care about Windows so far).
Since my C/C++ got very rusty over the years and my requirements are quite simple I was wondering if somebody knows about a ready-to-use NPAPI DLL that does just the one thing I need: Launch an EXE with several parameters and return its output?
I tried Google of course, but didn't find anything. Thanks a lot.
It should be rather easy to write such a plugin in C++ with Firebreath. Writing a NPAPI plugin from scratch can be tricky, but luckily Firebreath abstracts away most of the details and makes it much easier.
As a plus, if you base the plugin on Firebreath, in addition to NPAPI on Windows you pretty much get free support for NPAPI on Mac/Linux and ActiveX on Windows.
http://www.firebreath.org

Any articles on how to get started building your own browser?

Hello recently I've been a bit curious and wanted to make a browser. I'd like to use an existing engine though such as Gecko or Webkit. Are there any resources on the web for how to get started and any examples? Language choice doesn't really matter(but no VB please. That was the only example code I found)
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. This site contains design documents, architecture overviews, testing information, and more to help you learn to build and work with the Chromium source code.
Or study some applications using Webkit for example. Chances are, these projects are not as complex as chromium.
I'd recommend you build a browser in Java with Swing or SWT. They have all the components you'll need, so you need to put them together and start figuring out the tougher problems. The documentation is good, and you may even find tutorials that get you most of the way there.
I recently downloaded the code for Firefox or Chrome, and this seems like a much more difficult place to start. There's lots of setup and overhead to get a build working on your machine compared with a Java app.

Web editor question

anybody can recommend a good web editor to me?
page created in windows should be working ok in linux as long as firefox support it, right?
1.) Here you have a list with 10 free web editors for windows:
http://webdesign.about.com/od/windowshtmleditors/tp/free-windows-editors.htm
(the first one komodo it's pretty good at least the mac version I use)
Link
2.) OS and browser doesn't matter with HTML as long as you write (W3C compliant code).
In case of CSS & JavaScript some functions have different behaviors depending on the browser.
Notepad++
Firefox isn't the only browser used on Linux (I'm currently using Chrome). Fonts are something to look out for on Linux, so it's always worth testing.
I use the Telerik editor. It is not cheap, but it is very good. My users like it.
I am assuming you mean a content editor for use on your site.
I've used TextPad in the past. I also like Eclipse.
Are you looking for an editor with Syntax Highlighting then TextPad, KomodoEdit, NotePad++ are good.
Aptana Studio is also free and also provides Intellisense for HTML and Javascript editing.
If your page is W3C compliant, then it should be rendered well in any standard browser. Don't forget your DOCTYPE declaration.
The most suitable web editor depends on what technologies you are using.
If you are using ASP .NET, then you should use Visual Studio.
For Java (JSP), Eclipse is what you want.
If you are asking about a more general web editor (html/javascript) and you are more likely to be using php or Ruby, you really need to give a try to : PSPad. I have been using it for months, and it has a lot of cool features: from basic code editing to code verification etc. And yes, it's free! You can even add to it a lot of extensions.
For interoperability between navigators, you have to test your website on many of them as you can, be careful with Internet Explorer especially, here you can find some known CSS bugs that you may encoutner while running your pages on IE.
Alors I recommand you to use special tools that can do cross-navigator testing for you, like Browsershots.

Resources