Adam Bien's Weblog

Thursday Mar 13, 2008

Using Netbeans v6.1 as a HTML Editor

In the past I used a mix of Ultraedit, JEdit to keep my homepage up to date. Since the upgrade to Vista, the old ultraedit version doesn't work any more, the jedit editor has some problems with context menu. Because Netbeans v6 is open most of the time anyway - I tried to use as as a plain (HTML) editor - and it works surprisingly well. Instead of setting up a project, I just use the favorites (you have to open the view with Strg+3 or menu -> window -> favorites). In the favorites view, you have just to add the root of your homepage with the context menu (right mouse click: "Add To Favorites"). 

After this initial setup, you will be able to use the HTML editor with full "auto completion" and documented HTML-tags. The context menu "view" opens the browser for preview, which is convenient as well.

The HTML editor is really fast, with nice syntax highlighting and CSS support. Beyond that you can even preview the images - just double clicking on it. Netbeans 6.1 comes even with JavaScript support, which is handy.


[my tweets]  Rss My book: Real World Java EE - Rethinking Best Practices

Kommentare:

Yes, it works fine for HTML editing. I'm using it as well. The reason is the same as yours - to lazy to switch to different application

Gesendet von Lukas am March 13, 2008 at 12:32 PM CET #

Hi Lukas,

it is really working very well. There is even a Vista feature (the first useful :-)), which makes it even better: you can easily map in Vista FTP-Folders as folders. You can refer then to this folder from favorites as well.
Thanks for your comment!,

adam

Gesendet von Adam Bien am March 13, 2008 at 12:53 PM CET #

Thanks for reminding me of the "Favorites" feature in NetBeans. I was being mentioned during NetCAT but never looked into the usefulness. Now I just might use NetBeans for non-java HTML crafting.

Gesendet von Allan Lykke Christensen am March 16, 2008 at 12:34 AM CET #

Allan,

no problem -> just send me your NetCAT T-shirt :-).

"Favorites" is a really great feature - I use it since a participant of a JUG talk mentioned it...

regards,

adam

Gesendet von 192.168.0.22 am March 16, 2008 at 03:38 PM CET #

Thanks for the info on the favorites, should make site editing much easier on NB. I currently use Jedit for most of my html.

To make NB a complete solution for me, is there a good php plugin for syntax highlighting etc?

Gesendet von Chris Marsh am March 17, 2008 at 08:50 PM CET #

Hi Chris,

I am no php programmer but i have seen that Netbeans does have PHP plugins. I am using the development version of 6.1. Check under Tools-Plugins.

Regards,
Mircea

Gesendet von mircea am March 17, 2008 at 10:17 PM CET #

Great!

Gesendet von Jorge am April 22, 2008 at 08:19 PM CEST #

Thanks for leaving this post, I thought the 'projects' function was a bit annoying when using Netbeans, so thanks for pointing out how to use *Favourites*, Much appreciated and it works well.

Regards

Andrew

Gesendet von Andrew am November 19, 2008 at 12:09 AM CET #

Hi,

I found your post looking to see if there was a visual HTML editor plug in for NetBeans.

I use NetBeans a lot too and use it for some plain HTML sites as well.

I'd like to suggest an improvement to using Favorites that I found.

One of the reasons I wanted to use NetBeans was to use the built in versioning system support such as SVN. If you just use Favorites, you can't use versioning.

Now that NetBeans 6.5 has support for PHP projects, you can create a PHP project for HTML websites and get more features such as version support and being able to test your website from within netbeans.

If you don't want to create a seperate project for each website, you can create one project and create subdirectories for each one. But I would recommend creating a separate project for each. It's not that big a deal.

Gesendet von HTNMMO am December 27, 2008 at 04:57 AM CET #

Hi there, thanks for your info. I'm using Notepad++ to edit HTML but may give this editor a try.
:-)

Gesendet von CuocThiSEO - VietSEOGuy am January 09, 2009 at 03:25 PM CET #

Senden Sie einen Kommentar:
  • HTML Syntax: Ausgeschaltet
Interviews/About
My Recent Book
Java One 2009
CommunityOne East N.Y.C
JavaONE 2008 Interview
Search
...the last 150 posts
...the last 10 comments
greenfire.dev.java.net
Links
my.netbeans.org
Visitors
License