NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Can block comments be customized in editor?


Joined: 18 Feb 2013
Posts: 16
Reply with quote
Hello - Is there any way to customize the block comment settings in the PHPEd editor? I work with Smarty a lot, and it would helpful to be able block-comment a selection in a .tpl file by pressing Ctrl+Shift+/, like in PHP or Javascript code.

As an alternative approach to the above: When creating a snippet, is it possible to include a placeholder for the text selected in the editor, something like:
{* [selection] *}
That way, if the snippet is linked to a shortcut key, one could select text and press the key, and the selection would be wrapped in comment tags.
Thanks in advance!!
View user's profileFind all posts by gskramerSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
sorry, there is no support for block comments in smarty. Moving post to feature request folder

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


Joined: 18 Feb 2013
Posts: 16
Reply with quote
Hi Dmitri,

I understand that there is no block commenting for Smarty in the current version of PHPEd - but how about my more general question, concerning ways to work around that, like with a snippet that can incorporate the current selection in the editor? (OR... is there some way to create our own block comments in a configuration file?)

Thanks again,
Gordon
View user's profileFind all posts by gskramerSend private message


Joined: 29 Mar 2018
Posts: 46
Reply with quote
@gskrammer

Hi, If all you require at this stage is a snippet, they are very easy to make as I have discovered courtesy of @dmitri.

I have made some blocks for PhpDoc etc that have saved me oodles of brainache.

Kind regards,

jB Cool
View user's profileFind all posts by britescSend private message


Joined: 18 Feb 2013
Posts: 16
Reply with quote
Many thanks for your message, jB! I hope you are keeping well in this time.

I do already work with snippets and find them extremely useful. Are you able to answer my original question: How to create a snippet that incorporates the text selected in the editor, like:

{* [selection] *}

That way, I could assign it to a shortcut key, then create a Smarty comment by selecting text and pressing the key.

Thanks also to Dmitri for continuing to develop and support PhpED! I have tried *many* PHP IDEs, and PhpED continues to support my work process better than anything else out there!

Regards,
Gordon
View user's profileFind all posts by gskramerSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
gskramer wrote:
How to create a snippet that incorporates the text selected in the editor


Perhaps, this is a good example http://forum.nusphere.com/howto-use-a-php-script-for-my-editing-t753.html

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


Joined: 18 Feb 2013
Posts: 16
Reply with quote
Thank you, very helpful! I was able to do what I wanted following that example.
View user's profileFind all posts by gskramerSend private message
Can block comments be customized in editor?
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