jEdit Community - Resources for users of the jEdit Text Editor

Macros

Macros written especially for jEdit. Currently jEdit has built-in support for macro scripts written in BeanShell, an interpreted dialect of Java. BeanShell is easy to learn, especially if you have experience with Java, C++, or other object-oriented languages. Using BeanShell macros can help automate routine tasks and can extend jEdit's features with a minimum of coding. With the JythonInterpreter plugin, jEdit can also process scripts written in Python. These macros can also be used to make jEdit more productive for you.

  • BeanShell Macros (152)
  • Jython Macros (1)
  • Macro Bundles (9)
    Macros contained in zip, gzip, or anything besides plain text format. Macros uploaded in this format will not be available through the Macro Manager plugin.

Macro to insert comment token and indent (XEnter.bsh) (XEnter.bsh v0.1 by Gael Ecorchard (galou))
Submitted by galou on Thursday, 30 August, 2007 - 12:51
insert new line, then behaves either as normal insert enter and indent, if the line is a normal code line or insert the line comment token and indent the line if the current line is a comment Usage: - use the macro at the end of a comment line Best used with a shortcut like S-Enter

Updated on 08/30/2007 - 12:51
Downloads: 1146

Macros for use with Progress 4GL (ProgressMacros.zip v1 by Patrick Tingen)
Submitted by ptingen on Monday, 20 December, 2004 - 07:27
Some macros that can come in handy when working with Progress 4GL:

The macros are:
 - Keywords_to_Lower_Case.bsh   
   This macro converts keywords to lower case.

 - Keywords_to_Upper_Case.bsh   
   This macro converts keywords to upper case (surprise eh?)

 - Make_Get_and_Set_Methods.bsh 
   This macro can make get and set functions for a variable. Place
   the cursor on a line containing 'define variable ' and activate 
   the macro. It will create get and set macros. It also works with 
   multiple define statements. Just select all lines and activate
   the macro. 

    define variable CustomerName as character.
    
    /* Name: getCustomerName
     * Desc: Returns the value of CustomerName.
     */
    function: getCustomerName returns null:
      return CustomerName.
    end function. /* getCustomerName*/ 
    
    
    /* Name: setCustomerName
     * Desc: Sets the value of CustomerName.
     */
    function: setCustomerName returns logical (par1 as null):
      assign CustomerName = par1.
      return true.
    end function. /* setCustomerName*/ 
   
 - ProcedureList.bsh
   This macro activates an advanced search command and gives
   a list of all internal procedures, triggers and functions in 
   your code. It presents them using the hypersearch panel. 

Have fun!

Updated on 12/20/2004 - 07:53
Downloads: 1572

Macros for working with Partials (Partial_Macros.zip v0.2 by Panya)
Submitted by Panya on Friday, 2 March, 2007 - 22:04
1. Open_Partial.bsh

Opens partial which name is selected (to select independently not necessarily if nothing is selected, selects the word under caret).

Example:

<%= render :partial => 'form' %> # select "form"(without quotes) and use macro will open _form.rhtml

2. Create_Partial_From_Selection.bsh

Creates a partial from the selected text (asks for the partial name without _ and .rhtml) and replaces selected text with a <%= render :partial => 'partial_name' %> erb fragment.

Updated on 04/22/2007 - 19:10
Downloads: 1039

mergLine macro (MergLine.bsh v1.0 by Jia Zhiming)
Submitted by jiazhimi on Wednesday, 14 April, 2004 - 10:05
The macro merg lines of text into one comma divided line similar to " in ('a','b','c')" and copy the line. It works with line containing numbers or text. so " in (1,2.2,4.35)" also possible. It is mainly to help create SQL from some existing data.

Updated on 04/14/2004 - 10:05
Downloads: 1886

Model/Controller Switcher for RoR developers (toggle_model_controller.bsh v0.1 by vovan)
Submitted by vovan on Monday, 15 May, 2006 - 10:40
The macros opens a Controller file in the current buffer if you're editing a Model and vice versa.

Updated on 05/15/2006 - 10:40
Downloads: 1325

Open Selection with Extension (Open_Selection_with_Extension.bsh v1.0 by Gael Ecorchard)
Submitted by galou on Thursday, 19 March, 2009 - 08:25
Opens the file which base name is the selected text and which extension is identical to the one of the file where the text is selected - creates the file if it does not exist.

Updated on 03/19/2009 - 08:25
Downloads: 913

Paste_Around (Paste_Around.bsh v0.2 by Gael Ecorchard (galou))
Submitted by galou on Tuesday, 28 August, 2007 - 12:57
Paste the content of register 'a' before the selection (prefix) and the content of register 'e' after the selection (suffix) Usage: - select the prefix part and paste it into register 'a' (C-r C-c a) - select the suffix part and paste it into register 'e' (C-r C-c e) - select something and use the macro. Works also with empty selection. Does not work yet with multiple selections and rectangular ones (error message) Best used with a shortcut like CS-v

Updated on 08/31/2007 - 07:02
Downloads: 948

perltidy.bsh v1.0 by Ygramul
Submitted by Ygramul on Saturday, 17 December, 2005 - 21:05
A quick way to `perltidy` the current buffer, results (and/or errors) being displayed in a new buffer.

Updated on 12/18/2005 - 00:37
Downloads: 1420

PHP Lint Macro (PHP_Lint.bsh v1 by Unknown)
Submitted by sam on Thursday, 1 April, 2004 - 21:59
Requires Console plugin. A BeanShell to syntax check your PHP buffer.

Updated on 04/01/2004 - 21:59
Downloads: 1484

PYP5 macro to launch processing.py commando file (PYP5.xml v0.1 by Martin Prout)
Submitted by monkstone on Wednesday, 11 September, 2013 - 12:45
Simple macro to use with processing.py commando file

Updated on 09/11/2013 - 12:45
Downloads: 2078

There are 480 downloads in our database
User login
Browse archives
« April 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   82347
Context Free Art (*.cfdg)   0.31   46054
JBuilder scheme   .001   18494
BBEdit scheme   1.0   18115
ColdFusion scheme   1.0   18023
R Edit Mode - extensive version   0.1   17472
Advanced HTML edit mode   1.0   16205
Matlab Edit Mode   1.0   16067
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14292