CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, Fhalcon, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Sat Sep 19, 2020 12:21 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Editor text-formating in PHP heredoc
PostPosted: Wed Nov 01, 2017 9:07 am 
Offline

Joined: Fri Oct 27, 2017 9:35 am
Posts: 4
A request for editor code formatting within the PHP heredoc structure. This is anothger feature I miss from other editors.

PHP heredocs are widely used to output blocks of code and are useful because they handle multiple lines, tags, and single and double quotemarks well and can have embedded variables. They can represent large chunks of code with many lines.

Most coders format these with a label indicating the type of code within the heredoc: eg

$my_big_html_page=<<<HTML
<h1>My header</h1>
<p>
Some paragraph text
</p>
HTML;

or

$my_sql_statement=<<<SQL
SELECT * FROM {$databasetable}
WHERE ...etc
SQL;

My request is that the bounding identifiers (eg above would be HTML and SQL) be identified by the code editor, and the formatting colour rules for that type of code applied to the whole block. Currently in Codelobster all the code in a PHP heredoc is simply displayed as a single coloured block using the text colour for a string variable.

I'm hoping this isn't too hard to implement. The formatting rules are all there, just need to be applied within the heredoc.

Cheers, Alan


Top
 Profile  
 
 Post subject: Re: Editor text-formating in PHP heredoc
PostPosted: Sat Nov 04, 2017 2:19 am 
Offline

Joined: Fri Oct 27, 2017 9:35 am
Posts: 4
OK.
Codelobster almost won me over, but that's me back (for now) to Atom + a handful of Plugins.
Cheers for a top effort, guys.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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