jEdit Community - Resources for users of the jEdit Text Editor

Text

Macros that manipulate text


Drag_Up.bsh v1.1 by Tomek Pęszor
Submitted by takeshin on Monday, 7 July, 2008 - 07:16
Moves current line or selected lines one line up. It is not needed to select lines from the beginning to the end. Just hold shift+up/down arrow to indicate which lines to move, and then, use a keyboard shortcut you have chosen for this macro. Keeps selection. Suggested shortcut: CS+up arrow. Use in conjunction with Drag_Down.bsh macro.

Updated on 07/07/2008 - 07:16
Downloads: 1321

Duplicate Selection/Line macros (Duplicate_Selection_Line.bsh v1.0 by Sergey Kojin)
Submitted by runmen on Thursday, 16 March, 2006 - 17:17
This is modified version of original Duplicate_Line.bsh that allow duplicate not only lines, but also selection, like in IntelliJ IDEA Ctlr+D (duplicate) feature Checked for jEdit 4.3.pre3

Updated on 03/16/2006 - 17:17
Downloads: 1635

Enclose pairs (Encloses.zip v0.1 by Alexandre da Silva)
Submitted by simpsomboy on Thursday, 12 June, 2008 - 14:57
Warning! this is a zip file. if you download from Macro Manager Plugin, go to your macro directory, rename the downloaded file (Enclose_pair.bsh) to Enclose_pair.zip and extract it, and delete the Encloe_pair.zip file
Set of simple macros to enclose char pairs such as: [] {} '' "" `` %% <> ()

Features
  • Insert the pair when typing
  • Enclose the selection with pair just by typing it
Each one need to be configured with a shortcut corresponding with pair
unzip file into your $HOME/.jedit/macros directory

Updated on 06/12/2008 - 15:24
Downloads: 1113

Encrypt current buffer (Encrypt_Current.bsh v0.1 by David Mlejnek)
Submitted by davo on Monday, 13 September, 2004 - 16:41
Encrypts the current buffer content. The physical file content will not be modified until user saves the buffer. Uses PBE with MD5 and DES algorithm. Macro will prompt the user for a password which will be used to encrypt the buffer content.

Updated on 09/13/2004 - 16:41
Downloads: 1995

Escape Properties (Escape_Properties.bsh v0.2 by Rainiero Rainoldi)
Submitted by rainierito on Friday, 28 October, 2005 - 09:42
This macro converts the selected text into a sequence of escaped chars the same way the method store() of class java.util.Properties would do. It is very useful for writing language properties files from source files originally in other encodings. It escapes also : and \ and all that stuff problematic in a properties file.

Updated on 10/28/2005 - 09:42
Downloads: 1278

Hex2String (Hex2String.bsh v1.0 by Brad Mace)
Submitted by Brad Mace on Tuesday, 16 December, 2003 - 23:20
Converts the selected text from hexidecimal to ascii text.

Updated on 12/16/2003 - 23:23
Downloads: 2413

Insert Blank Lines (Insert_Blank_Lines.bsh v1.0 by Lee Turner)
Submitted by lturner on Thursday, 8 January, 2004 - 11:55
Beanshell macro to insert blank lines into a buffer.

Updated on 01/08/2004 - 11:55
Downloads: 1610

Insert simple Date (Insert_simple_Date.bsh v1.0 by Robert Schwenn)
Submitted by Robert Schwenn on Sunday, 1 June, 2008 - 20:37
Inserts current date in simple format "01.06.2008" at caret position.

Updated on 06/01/2008 - 20:46
Downloads: 1363

IntelliWrap (IntelliWrap.bsh v0.3 by Shoban Jayaraj)
Submitted by shoban on Tuesday, 30 March, 2004 - 14:41
Given a selected text, tries to wrap the selected text based on prefix strings. Great when adding multi-line comment text that needs to be prefixed with special characters. I wrote it to emulate EMACS 'fill-paragraph' so that comments can be wrapped so as to not exceed a fixed limit.

Can also be used for non-programatical tasks like prefixing replied mail text with '>' etc.

Version 0.3 takes the selection properly into consideration
Version 0.2 incorporates the GPL header to the macro.

Updated on 04/06/2004 - 09:06
Downloads: 2171

Just justify it ! (Justify.bsh v1.0 by Baldurien)
Submitted by Baldurien on Tuesday, 11 October, 2005 - 15:06
This macro will allow you to justify a list of word like The Bat (an email client) does. Also, when you are in a doc block (javadoc, phpdoc or jsdoc, etc) the macros will automaticly add the '*'. When nothing is selected, the macros will take text from the line where the caret is, until an empty line (only space, or only space with '*', or '*/' for docblock). Else it will take the text between the start line and end line of the selection. Note : you may have to customise (edit) the macro to get better result. A quick example [the comment is normally on one line, but it would broke up html presentation]
/** 
   If the selection is set, then we will use it to determine \
   the selected text. Else we will use the {@link Textarea.ge\
   tCaretLine()} method.
 */
Transformate into :
/** 
 * If  the  selection  is  set,  then  we will use it to determine the
 * selected     text.     Else     we     will    use    the    {@link
 * Textarea.getCaretLine()} method.
 */

Updated on 10/13/2005 - 23:11
Downloads: 1878

There are 480 downloads in our database
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300