AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Request: user-configurable code template

 
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
TheDutchJewel



Joined: 03 Jan 2011
Posts: 13

PostPosted: Thu Aug 18, 2011 3:55 pm    Post subject: Request: user-configurable code template Reply with quote

I'm interested in a plugin which integrate a user-configurable code template collection, like WebEdit for Notepad++? Maybe it's already available, but I can't find anything like that for AkelPad.

More info about WebEdit can be found on this page:
http://sourceforge.net/projects/npp-plugins/files/WebEdit/

Quote:
WebEdit is another attempt to integrate a user-configurable code template collection into Notepad++. With WebEdit you have the following options:

- create a menu command for pasting some text, possibly surrounding the current selection, if any. Imagine selecting a word and putting "<p>...</p>" around it with a single hotkey. You can create up to 30 such commands and assign keyboard shortcuts to them, or simply use the menu;
- the same 30 commands can also be represented by buttons on the main toolbar for quick access with the mouse;
- you can create a set of "tags" or abbreviations. Type one of them, then press Alt+Enter and it will be replaced with the corresponding block of text. If the replacement consists of multiple lines, all of them will be indented same as the first one. The caret will be placed in a predefined position within the new text. You can have the current clipboard contents (e.g. a function name) pasted on expansion.

The plugin configuration is stored in the WebEdit.ini file. Use "WebEdit\Edit Config" command from the "Plugins" menu to open the file in Notepad++ for editing.

All keyboard shortcuts can be assigned/modified using the standard Shortcut Mapper. For more information see the WebEdit.txt help file.
Back to top
View user's profile Send private message Visit poster's website
FeyFre



Joined: 07 Aug 2007
Posts: 2045
Location: Vinnitsa, Ukraine

PostPosted: Thu Aug 18, 2011 4:27 pm    Post subject: Reply with quote

TheDutchJewel
Templates plugin to insert, surprise, text blocks by given templates.
Insert metyhod of ContextMenu,ToolBar,HotKeys plugin to suuround words with <p>...</p> etc
Coder plugin for abbreviation.
Scripts plugin + zen_coding script set - html & css specified rapid editing(including abbreviations).


Be sure, AkelPad already can do almost all features NP++ have without hard development.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
TheDutchJewel



Joined: 03 Jan 2011
Posts: 13

PostPosted: Thu Aug 18, 2011 4:51 pm    Post subject: Reply with quote

That sounds good. Thanks for the quick reply. Smile

Can you also give an example about how to surround a selection of text with <p>...</p> etc, and how to link this function to a toolbar button or hotkey?
Back to top
View user's profile Send private message Visit poster's website
se7h



Joined: 28 Sep 2009
Posts: 767
Location: Minsk, Belarus

PostPosted: Thu Aug 18, 2011 5:26 pm    Post subject: Reply with quote

TheDutchJewel

Example for Toolbar plugin:
Code:
-"Paragraph" Insert('<p>\s\|</p>',1) Icon("path_to_any_icon")


\s - position of selected text after inserting
\| - position of cursor after inserting
Back to top
View user's profile Send private message
TheDutchJewel



Joined: 03 Jan 2011
Posts: 13

PostPosted: Thu Aug 18, 2011 5:55 pm    Post subject: Reply with quote

se7h
Thanks for the example. It works great. Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group