CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Fri Apr 26, 2024 1:22 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Convert HTML to PHP proposal
PostPosted: Sun Dec 08, 2013 2:52 pm 
Offline

Joined: Sun Dec 08, 2013 2:05 pm
Posts: 2
In HTML to PHP conversion I would like the ability to select between double and single quotes structure.

So far the conversion is like
Code:
<table width="500">

to
Code:
echo "<table  width=\"500\">
";

With sigle quotes it would look like:
Code:
echo '<table  width="500">';

...which is shorter.

Also it would be nice if this function can parse variables entered inside html code (as sometimes we close the php block for simplicity but it gets cluttered with many loops included)

So if i have
Code:
<td align="left"><?=;?></td>

It woud convert to (double quote version):
Code:
echo "<td align=\"left\">"  "</td>
";

or (single quote version)
Code:
echo '<td align="left">'..'</td>';


I am not top level programmer but I am used to single quotes, and some sources claims that this code is faster as there is no need to parse doublequoted strings in search for variables.


Top
 Profile  
 
 Post subject: Re: Convert HTML to PHP proposal
PostPosted: Sat Dec 14, 2013 4:37 pm 
Offline

Joined: Sun Oct 13, 2013 4:52 pm
Posts: 52
Looks like this is kind of a long shot but I'd hope that some features could be implemented in the future though.

_________________
We only live once. Image


Top
 Profile  
 
 Post subject: Re: Convert HTML to PHP proposal
PostPosted: Tue Dec 24, 2013 2:50 pm 
Offline

Joined: Thu Jul 17, 2008 3:07 pm
Posts: 75
Would be very usefull to make a dialog window with button "make suicide" for those who use "convert html to php" option. May be add some optional params, such as "with fire", "with blade", "with gravity" or something like that. Or just randomise method.


Top
 Profile  
 
 Post subject: Re: Convert HTML to PHP proposal
PostPosted: Tue Dec 24, 2013 4:38 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3932
Great joke ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 102 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group