Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   PHP and Notepad++ (https://www.warriorforum.com/programming/418316-php-notepad.html)

Young Samurai 20th July 2011 05:57 PM

PHP and Notepad++
 
Can I edit php in Notepad++ ?

Specifically, can I develop/customize a WP theme in it?

nthmarketing 20th July 2011 06:01 PM

Re: PHP and Notepad++
 
Yes easily :)

maxmalini 20th July 2011 06:18 PM

Re: PHP and Notepad++
 
Hi,

Yes, you can edit PHP in Notepad++ and I believe it has syntax highlighting for programming/scripting languages like PHP.

- Max

ohio1975 20th July 2011 06:52 PM

Re: PHP and Notepad++
 
bluefish and geany will do the same as well. if you are looking for wysiwyg that does not cost anything, try aptana.

eric1508 20th July 2011 08:22 PM

Re: PHP and Notepad++
 
Absolutely! I use Notepad++ as my primary code editor for my WP Theme Development, mostly working with PHP, JS and CSS/HTML. Couldn't live without it! And the find&replace features are huge time savers.

Eric

phpguy 20th July 2011 10:54 PM

Re: PHP and Notepad++
 
Its a good editor light and fluffy :-) It is missing some of the more advanced features that make us lazy.

Harrison_Uhl 21st July 2011 08:50 AM

Re: PHP and Notepad++
 
Notepad++ will work fine. Just be careful about setting the right End Of Line for the target runtime environment. It's on the menu: Edit | EOL Conversion

Generally Linux just uses a New Line (Line Feed) character, and Windows goes with a Carriage Return / Line Feed, (while I think the Mac just uses a Carriage Return.)

Also, Notepad++ doesn't auto save (at least the slightly older version I'm running), so save your work often, especially if your computer is at all unstable.

Harrison

Silke 21st July 2011 10:02 AM

Re: PHP and Notepad++
 
Yes. You can use every text editor to edit PHP coed.

Young Samurai 21st July 2011 01:12 PM

Re: PHP and Notepad++
 
I will take that as a very strong affirmative. :)

Thank you all for your input and the one or two bits of advice.

Jake Gray 21st July 2011 05:32 PM

Re: PHP and Notepad++
 
You can use anything that allows you to type text into it. Whether
this is an IDE or regular notepad. In order to run the PHP code, you
have to set up a local server (or you can use XAMPP, WAMP).

Jake Gray 23rd July 2011 05:24 PM

Re: PHP and Notepad++
 
And also, I forgot, If you are wanting to use a great IDE, check out Eclipse.

baokhau 23rd July 2011 11:21 PM

Re: PHP and Notepad++
 
Quote:

Originally Posted by Young Samurai (Post 4303868)
Can I edit php in Notepad++ ?

Specifically, can I develop/customize a WP theme in it?

Notepad++ is a trustful tool for programming. You can use it to keep track of the code of any language.

dennyrichs 27th July 2011 12:36 PM

Re: PHP and Notepad++
 
yes this is good editor. you can edit php and others languages code..You can also try gedit editor and adob dreamviewer.

try_hard_samurai 27th July 2011 05:23 PM

Re: PHP and Notepad++
 
Dreamweaver is good once you learn about all that it can do. Aptana is what I use if I don't have DW handy.

Brandon Bell 27th July 2011 11:07 PM

Re: PHP and Notepad++
 
Notepad++ is a great tool for Wordpress development. It allows you to quickly write code without a lot of distractions.

For Wordpress development, I'll usually write my initial code in Notepad++.

After that I'll check the code for errors using Eclipse PHP IDE.

Once the code is error free, I'll test the Wordpress theme/plugin on a localhost using XAMPP.

Young Samurai 28th July 2011 06:08 AM

Re: PHP and Notepad++
 
Thanks again for all the responses.

Just to clarify one thing:

I take it that -

if using Notepad++

my PC (Windows Vista) will process html/css and will display the results of my coding efforts in my browser (IE or FF),

but if I wish to use php it's then I require a local host like XAMPP.

Is this correct?

And is this simply because php is a server side language?

Workman 28th July 2011 09:01 AM

Re: PHP and Notepad++
 
Quote:

Originally Posted by Harrison_Uhl (Post 4307981)
Also, Notepad++ doesn't auto save (at least the slightly older version I'm running), so save your work often, especially if your computer is at all unstable.

Fortunately, if Notepad++ doesn't have a feature built in, there's a huge amount of plugins created by their community that probably does what you want it to do. You're correct that autosave doesn't come stock with NPP, but here's an autosave plugin that you can pop right in and it should work.


Quote:

Originally Posted by Young Samurai (Post 4353801)
my PC (Windows Vista) will process html/css and will display the results of my coding efforts in my browser (IE or FF), but if I wish to use php it's then I require a local host like XAMPP. Is this correct? And is this simply because php is a server side language?

You're correct. If you create .htm/.html/.xhtml files, your normal browser will render it just fine if you open it directly. If you want to run PHP code you either need to setup a web server on your computer using XAMPP or WAMP or rent web hosting from a server company that offers PHP-enabled hosting (Ideally PHP5, though it should be widespread by now).

You may also find some cost-effective hosting deals on the "Warrior Special Offers Forum". You can also search the forums for "web hosting" and scan through some of the topics to get a feel for what other marketers are using.

Good luck!

Ibcontact 28th July 2011 09:36 AM

Re: PHP and Notepad++
 
Yes it's possible but dreamviewer is better than notpad++

Young Samurai 28th July 2011 03:18 PM

Re: PHP and Notepad++
 
Workman and others,

Is there any reason to choose XAMPP over WAMP or vice versa?

Workman 28th July 2011 03:31 PM

Re: PHP and Notepad++
 
Quote:

Originally Posted by Young Samurai (Post 4357161)
Is there any reason to choose XAMPP over WAMP or vice versa?

I can't really say, so I leave it up to preference. I've used XAMPP in the past -- it's pretty straight forward, has a lot bundled up and (I think) it's been around longer than WAMP. I admit I've not used WAMP but some say it's easier to use. I say have a shot at both ;)

Of course, there are dizzying amount of various of opinions on which is better and why, but whatever works for you is the best :)

Young Samurai 28th July 2011 06:41 PM

Re: PHP and Notepad++
 
Quote:

Originally Posted by Workman (Post 4357248)
Of course, there are dizzying amount of various of opinions on which is better and why, but whatever works for you is the best :)

A good point, well made.

ohio1975 28th July 2011 10:20 PM

Re: PHP and Notepad++
 
A - Apache
M - MySql
P - PHP

WAMP is for windows platform.

XAMPP is for the OS-X (Mac). The extra P is for Perl.

Workman 28th July 2011 11:30 PM

Re: PHP and Notepad++
 
Quote:

Originally Posted by ohio1975 (Post 4359199)
A - Apache
M - MySql
P - PHP
WAMP is for windows platform.
XAMPP is for the OS-X (Mac). The extra P is for Perl.

W - Windows
X - Cross

XAMPP is cross platform and will work on Windows, Mac & Linux and both work very well out of the box.

That is a good point, WAMP is for the Windows platform.
I had a chance to play with it this afternoon and think it may be a better fit for someone who is trying to get started. Once installed. You'll have a little green or red "W" Icon on your task tray. Start the web/mysql services and go to http://localhost/. Jump into your www directory (C:\wamp\www) and start playing with php. As @ohio1975 pointed out, if you're on a non-Windows OS, you can cross this off the list.

It's a similar setup process with XAMPP and instead of a big "W" you have the XAMPP "X" icon in they task tray.

ebusinessireader 28th July 2011 11:35 PM

Re: PHP and Notepad++
 
notepad is the most classic and most convenient.

Young Samurai 29th July 2011 03:04 PM

Re: PHP and Notepad++
 
Chaps,

This is a great arrangement.

I ask a question and someone else goes out and does the research. Brilliant. :D

Seriously, thank you very much.

Quote:

Originally Posted by ohio1975 (Post 4359199)
A - Apache
M - MySql
P - PHP

WAMP is for windows platform.

XAMPP is for the OS-X (Mac). The extra P is for Perl.

Quote:

Originally Posted by Workman (Post 4359426)
W - Windows
X - Cross

XAMPP is cross platform and will work on Windows, Mac & Linux and both work very well out of the box.

That is a good point, WAMP is for the Windows platform.
I had a chance to play with it this afternoon and think it may be a better fit for someone who is trying to get started. Once installed. You'll have a little green or red "W" Icon on your task tray. Start the web/mysql services and go to http://localhost/. Jump into your www directory (C:wampwww) and start playing with php. As @ohio1975 pointed out, if you're on a non-Windows OS, you can cross this off the list.

It's a similar setup process with XAMPP and instead of a big "W" you have the XAMPP "X" icon in they task tray.


roosevelt 29th July 2011 07:26 PM

Re: PHP and Notepad++
 
Notepad++ is a very good software. However I think for PHP development you should look into NetBeans IDE. NetBeans has built-in support for HTML, CSS, JavaScript and also code suggestions for PHP functions or controllers. And if you get into heavy development, such as unit testing are creating complicated software solutions, then NetBeans for PHP is your best bet. I highly recommend it for any level of PHP programmers.

Young Samurai 30th July 2011 04:29 AM

Re: PHP and Notepad++
 
Thanks Roosevelt,

I like Notepad++ a lot but have heard a lot of positive comments re NetBeans.
I will try it.

Quote:

Originally Posted by roosevelt (Post 4365141)
Notepad++ is a very good software. However I think for PHP development you should look into NetBeans IDE. NetBeans has built-in support for HTML, CSS, JavaScript and also code suggestions for PHP functions or controllers. And if you get into heavy development, such as unit testing are creating complicated software solutions, then NetBeans for PHP is your best bet. I highly recommend it for any level of PHP programmers.


upendraets 30th July 2011 05:07 AM

Re: PHP and Notepad++
 
Notepad++ is a advance version of Notepad . in notepad++ we can implement all language like C++, C#, PHP etc.

SJL 30th July 2011 12:58 PM

Re: PHP and Notepad++
 
At work I use Dreamweaver, but at home I do the same stuff with Notepad++

It's true that Dreamweaver makes some stuff a lot easier and/or faster, but you can do the same things with NPP.

PS: I'm one of the very few Dreamweaver developers who would admit this ;D

AdWorkMedia 30th July 2011 02:35 PM

Re: PHP and Notepad++
 
Notepad is definitely doable, but Dreamweaver is damn nice so I would recommend working with it.

Jeremy_AM 30th July 2011 04:43 PM

Re: PHP and Notepad++
 
phpDesigner is the best PHP editor imo

Young Samurai 5th August 2011 05:49 PM

Re: PHP and Notepad++
 
OK,

WAMP and WP installed on my PC with no problems.

With Notepad++ and Firebug I'm tearing a free WP theme apart and viewing the results immediately, locally.

Thanks for all the help.

With a little help here and a couple of online tuts it was quite straightforward.

leppozdrav 5th August 2011 08:05 PM

Re: PHP and Notepad++
 
Previously it was Editplus which was a industrial standard tool for code editing for php, rupy, phiton, shell, etc. But it is a licensed software. But np++ is a freeware and has lot more feature when compared to edit+. I use np++ even for simple java and python code editing too. At present np++ is a defacto tool for code editing (other than secific IDE's)

rajraju131 6th August 2011 12:32 AM

Re: PHP and Notepad++
 
By using the notepad++ you can easily rectify the error in the html tag elements..

leppozdrav 8th August 2011 07:39 AM

Re: PHP and Notepad++
 
I use Notepad++ not only for editing html codes, I too use it for editing java scripts, watir scripts, and more. It is a one stop tool for all code editing. It has a auto complete which is very handy in html coding.

ADHardwick 8th August 2011 09:13 PM

Re: PHP and Notepad++
 
How could you not. Be sure to show line numbers.

ADHardwick 8th August 2011 09:14 PM

Re: PHP and Notepad++
 
FYI, other programs like text wrangler have FTP functions built in. Which is nice.

JeffE 8th August 2011 09:24 PM

Re: PHP and Notepad++
 
It works perfectly for JavaScript, so I assume it has highlighting functionality for all the popular web development languages.

Speedyapoc 8th August 2011 10:40 PM

Re: PHP and Notepad++
 
NotePad++ is a very simple, yet perfect IDE for editing PHP. It doesn't have code hint or other features that some paid IDEs may have, but it definitely does the job.

jalicia18 10th August 2011 12:59 AM

Re: PHP and Notepad++
 
Quote:

Originally Posted by Young Samurai (Post 4303868)
Can I edit php in Notepad++ ?

Specifically, can I develop/customize a WP theme in it?

We are using Notepad++ at work. It supports several languages and it's lightweight.

odehfehr 10th August 2011 07:35 AM

Re: PHP and Notepad++
 
ya you can easily edit PHP in notepad++, because notepad++ is definitely one of the best text editors for Windows.

wrongnumber 10th August 2011 11:03 AM

Re: PHP and Notepad++
 
NPPP is one of the best source editors for windows... very easy... :)

olakh 11th August 2011 12:04 AM

Re: PHP and Notepad++
 
Notepad ++ is a editor.So you can edit php code in it.

Bofu2U 11th August 2011 05:45 PM

Re: PHP and Notepad++
 
I would also look into PSPad. It's like Notepad++ but also with a FTP client built in. :)

mattprince789 11th August 2011 10:03 PM

Re: PHP and Notepad++
 
The presence of a plugin in the table below only guarantees that it lives as well as can be downloaded. As developers are not complete, plugins aren't either. They can have bugs as well as, worsened still, cause precarious in Notepad++ as things they should do transparently are not always transparent enough.

unnatural 16th August 2011 12:27 AM

Re: PHP and Notepad++
 
I use Notepad++ (for large files usually) and love it, but if you're going to do any serious PHP development you should look into Netbeans IDE.

scsheldon33 16th August 2011 11:57 PM

Re: PHP and Notepad++
 
Yeah, Netbeans IDE is pretty good.

powerspike 17th August 2011 12:12 AM

Re: PHP and Notepad++
 
I code quite a lot in php (as well as C# - but i use visual studio for that ;))

For quick edits, i use WINSCP (sftp & ftp support), and have notepad++ setup as the editor - it's configuable in the options (there is a editor section), pretty much in WINSCP right click on a file and it opens in notepad++ very nice for quick edit's or changes.

For bigger projects, i have to say setting up NetBeans IDE is the best.

Just be Aware that Netbeans, along with Aptana studio (and a few others) are based off the eclipse engine, so they are mostly the same - i find that Netbeans has the best configuration for php editing. Netbeans has project support - which you can setup to run over ftp/sftp as well, so very handy for large scale projects.

- Justin

Young Samurai 17th August 2011 05:45 AM

Re: PHP and Notepad++
 
There seems to be surge in support for Netbeans.

Loving Notepad++ - It's has such a small footprint and loads so quickly.

After all the above comments I feel obligated to give Netbeans a test drive.

Thanks again.

It's the sort of willingness to help you have all displayed which makes WF so valueable.

Nirav Shah 22nd August 2011 04:12 AM

Re: PHP and Notepad++
 
PHP function list plugin for Notepad++

There are a large number of plugins available for Notepad++ and WLScripting.com has a post showing how to add the function list plugin and have it show PHP classes and functions.
"Using the Notepad++ Function List plugin you can filter out all of your classes and its member functions as well as functions not in any class."


All times are GMT -6. The time now is 12:37 AM.