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 Mon Jul 15, 2024 8:25 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Editor Feature: wrap selected text in tags
PostPosted: Sun Dec 12, 2010 5:52 am 
Offline

Joined: Sun Jul 19, 2009 4:42 am
Posts: 3
Here is how this feature works. Suppose you have the following text:
Code:
Friends List
Alex alex@example.com
Bart bart@example.com
Chad chad@example.com

So you highlight Friends List, and press the command key/button for the feature. A small window opens, and you type <h2> and press Enter. The automatic result is then:
Code:
<h2>Friends List</h2>
Alex alex@example.com
Bart bart@example.com
Chad chad@example.com

As you can see, the feature automatically terminates the tag at the of the selected text. You can then move down and surround each line with a <tr> and then each name and address with a <td>. I know there are already easy ways to make tables, but this is just an example. You can also use it to surround selected text with quotes, parenthesis, brackets, etc.

I don't know how hard that would be to implement, but I think it would be useful. :)


Top
 Profile  
 
 Post subject: Re: Editor Feature: wrap selected text in tags
PostPosted: Thu Jun 13, 2024 12:24 pm 
Offline

Joined: Thu Jun 13, 2024 11:45 am
Posts: 2
Do I understand correctly that the application currently does not have the ability to wrap selected text by snippets? I mean a function similar to the "Edit" browser add-on or Surround by Mehmet Yatkı (much more difficult to configure) -- the ability to add one snippet before the selected code fragment, and another snippet immediately after the selected fragment (or two halves of one snippet, if you like). For example, after selecting text
Code:
CodeLobster PHP Edition CodeIgniter Tutorial
and applying a previously saved snippet, we will receive
Code:
<div class="video-container">
   <iframe src="//www.youtube.com/embed/=wRGb7VuIbe4" frameborder="0" allowfullscreen=""></iframe>
   <div class="video-container__title">Webinar: Web Author Customizations - Getting Started</div>
</div>


Top
 Profile  
 
 Post subject: Re: Editor Feature: wrap selected text in tags
PostPosted: Fri Jun 14, 2024 6:37 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3941
Hi, Roberth.

No, Codelobster doesn't have this feature.

Regards,
Codelobster Team.

---

Hi, Rita.

You may try Preferences->Snippets->Templates feature for it.

Regards,
Codelobster Team.


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

All times are UTC


Who is online

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