jEdit Community - Resources for users of the jEdit Text Editor
Updated Tcl Edit mode (tcl.xml v2006/10/20 by Jean-François Larvoire)
Submitted by larvoire on Friday, 20 October, 2006 - 14:56
Hello,

Here's a much improved Tcl language edit mode, based on the one in the latest source.

Changes:
  • Fixed comments detection: Only # at the beginning of Tcl commands are comments!
  • Quoted strings can span multiple lines.
  • Added recursive in-string substituted command and variable analysis.
  • Added numerous missing tcl keywords and variables up to version 8.4.14.
  • Removed $ on global variable keywords, as they're often used with $::.
  • Added Expect keywords, as KEYWORD2. ("send" was already in tk as KEYWORD2)
  • Avoid colouring substituted variables that are homonyms of a keyword.
  • Highlight hexadecimal numbers too.
Known limitations:
  • Unbalanced quotes or brackets within braces, such as in regular expressions, will confuse the analysis. Add behind the confusing instruction a ;# comment with closing quotes and brackets, to trick it into thinking it's balanced again.
Known bugs (Were there before, and I failed to fix them):
  • \c escape colouring does not work for escapes embedded in words. I attemted numerous workarounds using spans and regexps, but they all seem to fail to detect anything beginning with a \. And using NO_ESCAPE="TRUE" does not help.
  • {} within quoted strings should not affect indentation.
Any hint at how to fix the last two known bugs is welcome!
ruby snippets for jedit (ruby_rhtml_snippets.zip v1)
Submitted by nicolias on Tuesday, 17 October, 2006 - 00:07
These are the snippets that were at http://synthesis.sbecker.net/articles/2006/03/20/jedit-snippets-for-ruby-on-rails
HTML Strong tags (HTML_Strong.bsh v1.0 by grasshopper)
Submitted by grasshopper on Monday, 16 October, 2006 - 10:59
A simple macro to enclose a string in strong tags.
Enhanced PL/SQL Mode (pl-sql.xml v(taken fro by Uwe Pliha)
Submitted by uhuebner on Wednesday, 11 October, 2006 - 14:38
  • added all DBMS-Packages as keyword3
  • added all predefined exceptions as keyword4
HTML ordered list template (html_OL.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:47
HTML ordered list template with prompt for number of items
HTML unordered list (html_UL.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:47
HTML unordered list with prompt for number of items
HTML table template (html TABLE.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:44
HTML table template with prompts for columns, rows, headers
(X)HTML page template (xhtml page.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:42
(X)HTML page template, with prompts for title, encoding, JS and stylesheet
Simple PHP4 class template (php_class.vm v0.2 by Jarek Wasilewski)
Submitted by orajo on Tuesday, 12 September, 2006 - 20:56
This is a simple template/creator of PHP 4 class with optional extended class. If extended class is defined then call of parent constructor is also added. But there is problem with indentation of constructor method :(
GNOME Clearlooks icon theme for jEdit (jedicons-clearlooks.jar v0.1)
Submitted by Oswald on Thursday, 17 August, 2006 - 20:47

This icon set is based on GNOME Icons for jEdit, but contains icons from Clearlooks icon theme, instead of GNOME default icons

Put this file in $JAVA_HOME/jre/lib/ext (I have it in /usr/java/jre1.6.0/lib/ext) and restart jEdit.

See screenshot

Open_Last_Closed_Buffer.bsh v0.1 by Jakub Roztocil
Submitted by Oswald on Monday, 21 August, 2006 - 09:28
Opens last closed buffer.
Close non project files (Close_non_project_files.bsh v1 by Jakub Roztocil)
Submitted by Oswald on Wednesday, 16 August, 2006 - 15:46
This macro closes opened buffers which are not members of current project.
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):
  1. extended tag/attributes recognition
  2. some error recognition
  3. inline CSS (requires mode - CSS v2.2 by John Paul Taylor II [updated])
  4. inline Javascript
  5. PHP
limitations (to do):
  1. no asp and vbs support

known bugs (hard to fix):
  1. The first atribute must be preceded by space/tab, new line is not enough, the rest work ok.
  2. 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)
  3. 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:
  1. 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}" />
  2. 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}" />
  3. 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.
  4. Install the CSS mode included by overwriting or adding into "catalog":
    <MODE NAME="css" FILE="css.xml" FILE_NAME_GLOB="*.{css}" />
  5. 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
This is the updated version of the best CSS2.2 mode originally developed by John Paul Taylor II. It is fixed to meet the new regex requirements itroduced in jEdit 4.3pre5.
It is also required by "A colourful HTML" mode which is updated aswell
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)
Submitted by nick.durcholz on Friday, 23 June, 2006 - 16:11
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.
User login
Browse archives
« August 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
31
 
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   95567
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17479
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299