<

Coding- What editor to use?

Published on
6,305 Points
3,205 Views
1 Endorsement
Last Modified:
If your starting to code and edit webpages, that use php, you might want to to find yourself the proper text editor, many people choose notepad, or wordpad, both are supplied in any Windows OS, but this is the worst thing to do, especially when dealing with php.

Wordpad is basically the worst text editor program available, sure it may look all nice and fancy, but it also injects abunch of junk to your code when saved, notepad does this occasionally. This is because it saves the files with a signature or Byte Order Mark (BOM) ( http://en.wikipedia.org/wiki/Byte_Order_Mark ) at the beginning of UTF-8 text.
For more information, see the article Unexpected characters or blank lines ( http://www.w3.org/International/questions/qa-utf8-bom.en.php ) on the W3C site.

Older text editors or browsers will display the BOM as a blank line on-screen, others will display unexpected characters, such as . This may also occur in the latest browsers if a file that starts with a BOM is included into another file by PHP. Alot of browers and php based pages don't like them and will not work correctly if they are present, phpBB is one of the many php based scripts that don't like Bom Signatures.

To cure this issue use a editor that doesn't leave Bom Signatures(extra characters or spaces in a file) in other words don't use notepad to edit files. I use an editor called Notepad++ and it is free ( http://notepad-plus.sourceforge.net/uk/site.htm ) But if you don't like that one, there are others that will work and are free.(Crimson editor is another one)
1
Comment
11 Comments
LVL 36

Expert Comment

by:Loganathan Natarajan
I think , Dreamweaver will be good editor for PHP.  Also Netbeans supports PHP coding
0
LVL 70

Expert Comment

by:Jason C. Levine
Dreamweaver is not an editor.  It's a combination product that is meant to appeal to Designers, Coders, and Content Managers alike.  If your concern is merely editing PHP code and you are not handling the front-end of the site, stick to something like NotePad++ that is free and provides basically the same function as Dreamweaver.
0
LVL 49

Expert Comment

by:Roonaan
Hi,

when noticing this title, I expected a discussion on different tools one could use for php editing like Zend Studio, PHP Edit, dreamweaver, notepad, jEdit, ultraedit, etc.

From that perspective this Article is more of a question than a proper article.

My 2cts.

-r-
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

LVL 32

Expert Comment

by:Daniel Wilson
I like SCite for a text editor.
scintilla.sourceforge.net/SciTEDownload.html

It has syntax highlighting for LOTS of languages and several options on line endings and tabs.

I am intending to check out Zend Studio ... just haven't yet.
0
LVL 1

Expert Comment

by:djdiablo
Eclipse is the best all-round programming environment around, and it's free.

http://www.eclipse.org/downloads/
0
LVL 32

Expert Comment

by:Daniel Wilson
I now like Eclipse w/ the PHP add-in best for PHP as well. I tried Zend Studio but found it no better than Eclipse.
0
LVL 1

Expert Comment

by:karp13
Aptana is great!
0

Expert Comment

by:alanristic
+1 for Aptana (or Eclipse for that matter). Both can be configured as you need them, they have bunch of tutorials, solutions to problems and big community if you need somethig not abvious instantly. Or you can ask here ;)
I'd recooment clean install od Aptana (without too much aditionals plugins). If you really need some extra plugins "not available" by default in Aptana, I'd recommend Eclipse + plugins that you need.
0
LVL 12

Expert Comment

by:Avinash Zala
Eclipse PDT...
0
LVL 5

Expert Comment

by:Justin Merrill, MBA
I love NetBeans for PHP, and it's decent with Javascript as well.

I have only dabbled a little, but Brackets.io seems to be the good to use for a lot of Javascript (and related libraries / frameworks) stuff that is in high demand right now. It includes a Javascript bebugger, which is pretty awesome.

For Java, I think Eclipse is probably the best, with NetBeans being a VERY close second.

Recently, I've been working with a ton of blended code on different systems that has goofy stuff like old Java ILOG code, some old Perl, and other uncommon stuff. As a lowest common denominator, I've found that Sublime Text works great for an "All Inclusive" Code Editor.
0
LVL 5

Expert Comment

by:Dawid Fusek
heeh,
 
this article is rather a good point to comments bellow art. that are in fact much more helpfully :)

regards
NTShad0w
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Join & Write a Comment

The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month