|
From: Robert S. <Ro...@Sc...> - 2008-01-26 00:39:47
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <tt><font size="-1">Hi, <br> the block-fill feature of TextTools Plugin doesn't insert more characters per line than fit into the selection's width. Most times I want a different behavior. So I took the code into a macro and changed it's behavior. <br> The macro can be downloaded <a href="http://community.jedit.org/?q=filestore/browse/43&PHPSESSID=540ef3450b6b3c34b7fbf83f30160df9">at the community site</a>.<br> <br> <br> These are the differences to the original function of TextTools Plugin:<br> <br> 1. No choice to overwrite or not the selection. Instead, the selected text is deleted and the new text or number is inserted with it's full length. When numbering, the longest inserted number defines the length of inserted text.<br> <br> 2. Improved performance on large selections because of:<br> - Removed support for multiple selections (what's the expected result else?)<br> - Removed support for tab handling (there should be no tabs anymore...)<br> <br> <br> Note: It takes some time before the </font></tt><tt><font size="-1">Dialog appears. To reduce this time, the macro could be splittet into 2 files and the biggest part is placed in the startup directory (see comments in the file). This works fine. For jEdit 4.2 this splitting seems to be necessary.</font></tt><br> <tt><font size="-1"><br> Hope, You like it.<br> Robert<br> </font></tt> </body> </html> |