NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
New To PhpEd - Few Questions


Joined: 11 Apr 2017
Posts: 5
Location: Sabattus, ME
Reply with quote
Hi,

Just got PHPEd and love how fast 20 + php files load... awesome.

I have been using Dreamweaver for the past 7 years.
I can say for sure that DW has declined drastically.
They recently changed to a different code editor and it is awful.
So, I have had enough. I want a real php editor!

Anyways... I have a few questions...

1) How do you comment out "<?php require('myfile.php') ?>" when it is with html code.
Using the "Add Line Comment" doesn't work.
However, I can comment out any html/js.... what am I missing?

2) One thing I did like about DW, is that it had a GUI for editing CSS styles. This is not a deal breaker for me but...
When I hover my mouse over #CFCFCF i have no way of seeing what color it is without opening up DW again and using their visual preview.
How is this not implemented in this application??

3) Why is there no support for WordPress, but only drupal?

4) Is there any kind of plugin system beside the scripts feature??

5) Also... when I type out a path to an image, how come it doesn't read from where my path is and auto complete the image path or popup a small preview of an image?
Another cool think that DW did.

Thanks in advanced.
View user's profileFind all posts by pixelinkmediaSend private message
New To PhpEd - Few Questions


Joined: 11 Apr 2017
Posts: 5
Location: Sabattus, ME
Reply with quote
Well... i figured this one out....

Quote:
1) How do you comment out "<?php require('myfile.php') ?>" when it is with html code.
Using the "Add Line Comment" doesn't work.
However, I can comment out any html/js.... what am I missing?


I only have to highlight & do the comment on everything in between the <?php ?> tags.
Hmmm... why didn't they just code that in to account for the tags?
View user's profileFind all posts by pixelinkmediaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
PhpED is not a drop-in replacement for DW. Primarily our product is focused on php code completion, debugging, profiling and testing.
As of your questions:
1 -- I'd recommend to think twice before mixing html/js/css with php. First three are client-side scripts, while the 2nd is server-side. If you mix them, you'll have either something that will never be cached on the client and your server will have to send all these divs/tables/forms all over again and again, or you'd have to play with cache-related headers too hard and this is error prone and tends to create browser compatibility issues. Why don't you try templates and ajax? In this case you'll send to the user only dynamic part of the content. This scales much better and works much faster. Just my 2c
As of commenting out, IDE expects you to have php tags on their own lines. In this case you'll easily be able to comment php code. If you want to comment just require('myfile.php'); --you can select what you need to comment out and press Ctrl-Shift-/
2 -- if you place caret on that color, the color dropdown will pick it from the text and show
3 -- we didn't get many requests from our customers to support WP
4 -- in the plans
5 -- I'm not sure what path you mean. What if this code is in php file in say /include/mycart/ directory that is included from /mycart/cart.php, and refers to img/myimage.png. What directory should the IDE check for the image?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 11 Apr 2017
Posts: 5
Location: Sabattus, ME
Reply with quote
dmitri wrote:
PhpED is not a drop-in replacement for DW. Primarily our product is focused on php code completion, debugging, profiling and testing.
As of your questions:
1 -- I'd recommend to think twice before mixing html/js/css with php. First three are client-side scripts, while the 2nd is server-side. If you mix them, you'll have either something that will never be cached on the client and your server will have to send all these divs/tables/forms all over again and again, or you'd have to play with cache-related headers too hard and this is error prone and tends to create browser compatibility issues. Why don't you try templates and ajax? In this case you'll send to the user only dynamic part of the content. This scales much better and works much faster. Just my 2c
As of commenting out, IDE expects you to have php tags on their own lines. In this case you'll easily be able to comment php code. If you want to comment just require('myfile.php'); --you can select what you need to comment out and press Ctrl-Shift-/
2 -- if you place caret on that color, the color dropdown will pick it from the text and show
3 -- we didn't get many requests from our customers to support WP
4 -- in the plans
5 -- I'm not sure what path you mean. What if this code is in php file in say /include/mycart/ directory that is included from /mycart/cart.php, and refers to img/myimage.png. What directory should the IDE check for the image?


Thanks for responding...

I am aware it is not a DW replacement... DW is junk. But, people will develop websites with PhpED and there are some things that could be done to make life a little easier to speed up site development.
I love the fact that PhpED has it's own server, ftp/sftp capabilities and a debugger.... something Adobe programmer's can't even figure out... they are designers not programmers LOL.

1) My files are *.php... with html code inside. That is what I meant. I know trying to run an *.html with php inside is bogus... some web hosts don't play nice with that setup. That is why if I need to use any php... the entire site is converted to all *.php pages. .... the entire line php require line is all by itself. But, when I highlight <?php require("myfile.php") ?> (and I try to comment out)... nothing happens. But if I just highlight require("myfile.php") ... it works.

2) It's not working for me. I placed caret in the color #CFCFCF and hovered, I tried highlighting the entire hex and hovered.... I let my mouse stay over the text over 1 minute.... nothing

3) okay

4) okay

5) My image is located in ... "images/myimage.png" - So, I type in <img src="images/myimage.png">.... It doesn't fetch the image to finish code or fetch a preview if I hover over it.

Thanks
View user's profileFind all posts by pixelinkmediaSend private message
New To PhpEd - Few Questions


Joined: 11 Apr 2017
Posts: 5
Location: Sabattus, ME
Reply with quote
And FYI....

I tried... phpDesigner8 and CodeLobster too
But, when I loaded 20+ pages, your program loaded all the php files in 2 seconds (or less).
The others took a minute.... DW takes 2 minutes and then boggs down.

That is the biggest reason I chose PhpED.... the SPEED & Debugging

Nice!!
View user's profileFind all posts by pixelinkmediaSend private message


Joined: 08 Apr 2017
Posts: 1
Location: Amsterdam, Netherlands
Reply with quote
pixelinkmedia Im having the same problem when it comes to hovering. How did you fix that?

_________________
MH
View user's profileFind all posts by MateusidlaSend private message


Joined: 11 Apr 2017
Posts: 5
Location: Sabattus, ME
Reply with quote
Mateusidla wrote:
pixelinkmedia Im having the same problem when it comes to hovering. How did you fix that?


I haven't... doesn't work for me
View user's profileFind all posts by pixelinkmediaSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Clicking in or selecting colours has never changed the colour dropdown for me either; I didn't even realise it was supposed to do that. I've tried it in both CSS files and HTML styles.
View user's profileFind all posts by plugnplaySend private message
New To PhpEd - Few Questions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic