CodeBrowser with function highlight (MyCodeBrowser.zip v1.5 by Manil)
Submitted by
Manil on
Tuesday, 18 July, 2006 - 23:07
If someone wants to use this version of CodeBrowser it is based on version 1.4.3 of CodeBrowser but it will highlight the current Tag (depending on the Caret position). If you find any bug please notify me. I included the jar file and the source code, if someone can make it available for the next release of CodeBrowser it will be great, i don't have access to CVS, and i am not an official developeur for jEdit. I'll be happy to participate to this great text editor....
Comments are wellcome...
Manil
jEdit Web Badges (jedit-webbadges.zip v1.0 by Harpreet Miglani)
Submitted by
hexxus on
Sunday, 16 July, 2006 - 02:27
A set of six 80x15 web-badges (or Blog-Buttons if you prefer) for jEdit in png format.
A Colourful HTML (html.zip v1.1 by Venimus)
Submitted by
venimus on
Tuesday, 31 August, 2004 - 11:55
Update:
- The mode is now compatible with 4.3pre5+.
- DOCTYPE highlighted
- highlighted
- Highlighting of multiline tags improved (but not perfect).
- Highlighting of numbers improved.
- Some other bugs fixed.
This is the most featured HTML color mode arround. It has almost all of the functionality you need when developing web content. Recognizes CSS,PHP,Javascript (delegates to the existing modes).
features (what highlights):
- extended tag/attributes recognition
- some error recognition
- inline CSS (requires mode - CSS v2.2 by John Paul Taylor II [updated])
- inline Javascript
- PHP
limitations (to do):
- no asp and vbs support
known bugs (hard to fix):
- The first atribute must be preceded by space/tab, new line is not enough, the rest work ok.
- there is small chance, but it is possible an invalid attribute to highlight as "event", it is caused of the impossibility of matching line-starts (or EOLs) in regex (due to limitations)
- There is a bug in jedit if background for color syntax is set. That background incorrectly applies to other tokens which doesn't have a background color set. By default the "invalid" type have a background and the other types doesn't. So the mode may look like it doesnt work. To fix that, set a background to all types or remove the background of the "invalid" type.
installation:
follow the usual steps for installing a mode definition:
- overwrite the original html.xml in jedit installation directory, or save it to .jedit/modes directory, and modify .jedit/modes/catalog to include
<MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm}" />
- Install the fixed PHP mode (original) included in the package by overwriting or adding definition into the "catalog":
<MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{php}" />
- You may try to use this HTML mode for php files aswell by tricking jEdit to use html.xml to highlight php. This way the html code outside <?php?> will be highlighted. To do it, instead the above definitions (1. & 2.), add the following lines in "catalog" :
<MODE NAME="php" FILE="php.xml" FILE_NAME_GLOB="*.{~}" />
<MODE NAME="html" FILE="html.xml" FILE_NAME_GLOB="*.{html,htm,php}" />
(note the "*.{~}" - it must be an invalid extesnsion, because html.xml will be used for the *.php files aswell, but if we replace directly the original php.xml will not be available for delegation)
I recommed you install the included fixed mode, but the original one should work just fine.
WARNING:This trick may cause some misbehaviour (on theory), because aftar that step "php" files will become "html" for jedit and plugins that depend on it may cease to work. However I didnt notice any problems.
- Install the CSS mode included by overwriting or adding into "catalog":
<MODE NAME="css" FILE="css.xml" FILE_NAME_GLOB="*.{css}" />
- fix your syntax colours from "general options": set a background color to all types or remove the background of the "invalid" type.
used colors:
markup - unknown tag
keyword1 - tag
keyword2 - attribute name, <tr>, </tr>
keyword4 - tag that MUST be included in other tag
keyword3 - deprecated tag
function - unknown attribute
literal1 - attribute value
literal2 - inline css
literal3 - inline javascript
comment1 - comment
comment2 - m$ conditional definition (IE)
CSS 2.2 By John Paul Taylor [Updated] (css.xml v2.2 Update by Venimus)
Submitted by
venimus on
Friday, 7 July, 2006 - 02:03
Darcs patch and changelog edit modes (darcs-edit-modes.zip v1.0 by Nick Clarke)
Submitted by
memorius on
Tuesday, 4 July, 2006 - 07:03
Two edit modes for jEdit, to be used with the darcs revision control system.
Use these to examine darcs patches sent by email, or take the output of darcs commands and view it in jEdit - for example, this makes darcs whatsnew much more useable.
- darcs-patch.xml (darcsp): Highlights elements of darcs patch files: e.g. the output of darcs send -o mypatchfile.pat and darcs whatsnew commands.
- darcs-changelog.xml (darcsc): Highlights elements of darcs changelogs: e.g. the output of darcs changes commands.
These edit modes are intended to be installed together (one delegates to the other). They will highlight a number of things in different colours:
- text of lines added / removed in hunk patch sections
- line number and filename for each change
- files added, removed, modified
- binary patches
- various fixed strings which divide the darcs output
- patch metadata in darcs changes - patch name, comment, author etc.
- handles the results of additional output options to darcs: -v, -s etc.
See top of each file for a comment with entries for the edit mode catalog file.
RecursiveOpen plugin update for 4.3pre3 (RecursiveOpen.jar vn/a by nick durcholz)
This jar file is compatible with 4.3 pre3. Also includes new ignore lists option.
Copy_Name_to_Clipboard with a trick for rails partials (Copy_Name_to_Clipboard.bsh v0.1)
Submitted by
vovan on
Friday, 16 June, 2006 - 15:04
That's a "patch" for Ollie Rutherfurd's macros. In general it behaves the same, as original. But if you're trying to get to clipboard a rails partial file (like _partial.rhtml) the first _ symbol and the .rhtml ending will be snipped (so you get only "partial" in clipboard).
Macro for Centering Text (centerText.tar.gz v0.1 by Simao Mata)
Submitted by
Simao on
Wednesday, 14 June, 2006 - 11:48
I recently switched from emacs to jEdit, (I just love it, and don't miss lisp a single bit :P) and one of the features I missed is centering lines of text.
Just select the lines of text to center and run this macro.
The tar.gz file contains the macro and my gpg signature of the macro, you can get my public key by searching any sks keyserver for simao dot bliter dot com.
6502 assembly edit mode (assembly-6502.xml v0.1 by Aaron Forrest)
Submitted by
aarfo on
Wednesday, 31 May, 2006 - 01:46
Edit mode for 6502 assembly language, with highlighting for XASM assembler directives
Be sure to add the following line to your modes/catalog file
<MODE NAME="assembly-6502" FILE="assembly-6502.xml"
FILE_NAME_GLOB="*.asm" />
Toggle_Toolbar.bsh v1 by Oswald
Submitted by
Oswald on
Saturday, 20 May, 2006 - 21:07
Toggle view of main toolbar. You can assign some shortcut for this macro and change view of main toolbar without opening Options dialog.
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.
Select and iterate through string literals (selectStr.bsh v0.1 by Mehmet Soyturk "myavuzselim")
Submitted by
myavuzselim on
Friday, 14 April, 2006 - 08:04
- Calling this macro once selects text between the doublequotes around the caret, doublequotes exclusive.
- A second call selects also the doublequotes.
- By calling the macro multiple times, you iterate through the string literals in your file from left to right.
- It takes java/c++ escape sequences into consideration.
JavaSideKick 2.0 (JavaSideKick.jar v2.0 by Dale Anson)
Submitted by
daleanson on
Tuesday, 17 January, 2006 - 18:44
This is a pre-built binary of JavaSideKick 2.0. The parser was built with JavaCC 4.0. There have been some issues with the parser when it was built with JavaCC 3.2 where the parser would hang and consume all CPU cycles. JavaCC 4.0 has made some changes in stream handling, and so far, I've been unable to reproduce the "hang" with this version of the parser. I'd appreciate any feedback be posted to either the jEdit user or development mailing lists.
- 14 Feb 2006: updated jar file, should fix the problem mentioned about the beanshell/gotodockable error.
- 17 Feb 2006: apparently I compiled the previous file with Java 1.5. I've recompiled with Java 1.4 and updated the jar.
- 24 Feb 2006: removed the menu item to show the structure browser, use the SideKick menu item instead. Updated code completion, it's better, but it's still not complete.
- 30 Mar 2006: JavaSideKick 2.0.2 is out, the attached is 2.1.0. More updates to code completion, and added ability to show javacc files in the tree.
- 13 Apr 2006: Attached JavaSideKick 2.1.1, as usual, more minor updates to code completion, some clean up of the javacc browser.
Previous word actions with nice whitespace eating and selection movement actions (SelectionMovement.zip v0.1 by Stefan Rank)
Submitted by
wrstlprmpft on
Friday, 7 April, 2006 - 15:07
PrevWord.bsh - like Go to Previous Word (Eat Whitespace) but don't eat whitespace in front of the word.
SelectPrevWord.bsh - like Select Previous Word (Eat Whitespace) but don't eat whitespace in front of the word.
BackspaceWord.bsh - like Delete Previous Word (Eat Whitespace) but don't eat whitespace in front of the word.
Using these for the shortcuts C-left, CS-left, and C-backspace gives you word movement that always stops at the beginning of words, but does not stop at the end of words.
(For the 'Next' variants use the standard actions with (Eat Whitespace))
The Move_Selection_* macros allow you to ... well, move the current selection around.
If you like you can bind them to complicated shortcuts and ruin your fingers. ;-)
(I use AS- plus the standard movement keys... e.g. ASC-left to move past one word on the left)
There is lots of ugly code duplication in these macros, but I guess it's ok as these should not be macros but builtin anyway. :-)
UMN Mapserver Mapfile Edit Mode (mapfile.xml v1.0 by Kenton Williams)
Submitted by
williamskg6 on
Tuesday, 21 March, 2006 - 19:14
This is a University of Minnesota Mapserver Mapfile edit mode for syntax highlighting while creating mapfiles. You can visit the UMN Mapserver website at http://mapserver.gis.umn.edu/ for more details about Mapserver.
C++ fonction declaration to definition (declarationToImplementation.bsh v0.1 by clement)
Submitted by
clement on
Friday, 17 March, 2006 - 13:33
Macro that transform a C++ fonction declaration into a fonction definition. The class name is added according to filename of current buffer. To use, copy the fonction declaration into the .cpp file you want to define the fonction and apply the macro. The semi-colon at end of declaration is expected to be copied and is removed.
Happy coding,
Clément.
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
Date Tag Buddy (Date_Tag_Buddy.bsh v0.2 by Ralf Kintrup)
Submitted by
RalfK on
Tuesday, 7 March, 2006 - 11:12
[READ THIS USING THE MACRO MANAGER]
Updates certain date value tags in an HTML buffer (the current edit mode must be "html"):
1. Updates the date value of a modification
date tag:
Last modified: 01 Mar 2006
2. Updates the year in a copyright text:
© Me 2006
Updates all "includes" in an HTML buffer. An include is defined as two HTML comments where the first one contains the path to a file that should be inserted between the comments:
The path can be relative, as in the example, or absolute. Included files may contain date tags.
The date tag and "include" updates can be automatically updated when the buffer is saved. Therefore install Ollie Rutherfurd's ActionHooks plugin (http://plugins.jedit.org/plugins/?ActionHooks) and set it up:
1. Add the Date Tag Buddy macro to the
"BufferUpdate.SAVED" event list.
2. Configure the ActionHooks plugin to start up
with JEdit.
This ensures that date tags and "includes" are automatically updated whenever the HTML buffer is saved.
A modification tag is identified by
and . A copyright text is identified by © and . The macro assumes that the date value is located at the end of each tag. To change the default behavior of the macro you can modify the constants at its end.
Checked for jEdit 4.3pre3 API.
Make bookmarklet (Make_Bookmarklet.bsh v1.0 by d delvin johnson)
Submitted by
delvinj on
Saturday, 11 March, 2006 - 01:38
Make_Bookmarklet.bsh -- removes the newlines and tabs in the current buffer, making the text appropriate for use as a javascript bookmarklet.
Automatically run Ant on the default target of the build file for frontmost buffer (Run.bsh v1.0 by Philip Weaver)
Submitted by
philmaker on
Tuesday, 7 March, 2006 - 09:47
It's kind of cumbersome to have to switch between ProjectViewer and AntFarm during development. So I created this simple macro (3 lines) to allow me to press command-r to run the nearest build file for the frontmost buffer. You'll also need to create a keyboard shortcut yourself.
The script assumes that AntFarm and ProjectViewer are docked in the same pane. Whenever AntFarm runs, its panel becomes visible automatically, so the macro quickly switches it back to ProjectViewer (which I always leave open.)
If you have any questions or would like to enhance this, feel free to contact me at philip at philmaker dot com. All of this is documented in jEdit help:
- Console Plugin Help: 6. Macros and the Console plugin
- AntFarm Plugin Help: 5. The Ant Shell
- jEdit API Reference: org.gjt.sp.jedit.gui.DockableWindowManager