jEdit Community - Resources for users of the jEdit Text Editor
Archives
How to enable (X)HTML tag highlighting?
Submitted by mamboze on Monday, 24 January, 2011 - 02:47
Hi,
I had to reinstall jEdit recently and I can't work out how to enable html tag highlighting showing the enclosed code block. At the moment, all I'm getting when I click on one of the angle brackets of a tag is the other one getting indicated with the cursor. This is not very useful when editing (X)HTML pages. Also, when editing a php file, how can I get the php specific tags to be highlighted differently to HTML?

Thanks in advance for any help.
Console passes wrong file name to Error List
Submitted by Clavius on Tuesday, 25 January, 2011 - 22:32
I'm using the Console plug-in to parse my compiler messages and display errors in Error List plug-in. This works fine except the Error List incorrectly displays the file name and path.

In the Console error patterns menu, I specify the following:
Name: VHDL
Regexp: (.+):..+\\([^\\]+)\.vhd\ *\((\d+)\)Sad.+)
Warning regexp: leave empty
Extra lines regexp: leave empty
Filename: $f
Line number: $3
Error message: $4



Here's a sample of the compiler output displayed in the Console:

-- Compiling architecture behavior of tb_system_monitor
** Error: C:\Projects\tb_system_monitor.vhd (171): (vcom-1272) Length of expected is 8.



The Error List shows the correct error, but gets the file path wrong and forgets to include the file extension (.vhd).

C:\Program Files\jEdit\tb_system_monitor (1 error, 0 warnings)
171: ** Error: C (vcom-1272) Length of expected is 8.


I tried changing the Console Filename parameter from "$f", but nothing I did had any effect on the file name reported in the Error List. Is the Filename parameter passed to the Error List?

Thanks.
ProjectViewer: How to add a certain file?
Submitted by Axel on Thursday, 27 January, 2011 - 11:07
Hello,

how can I add a certain file to ProjectViewer?

Up to jEdit4.3pre18 & ProjectViewer 2.1.3.7 I pasted the file path into "Add Files from VFS" for getting the file listed in the ProjectViewer.

But now, with jedit 4.4 & ProjectViewer 3.1.0, "Add Files from VFS" seems to have disappeared and I can't find a way to add a certain file (besides those, which are created as "new"). - How do you do this?

If I remember right, I had the the same problem even with jedit 4.3.2, stable release.

Axel


Doesn't work:
Windows XP
jedit 4.4 Java 1.6.0_07
ProjectViewer 3.1.0

This works:
Windows XP (same system as above)
jedit 4.3pre18 Java 1.6.0_07
ProjectViewer 2.1.3.7
External Browser Command for MAC
Submitted by mj3dvfx on Tuesday, 1 February, 2011 - 05:17
Hello everyone.

I'm brand new to using jEdit and have been slowly but surely setting things up. I recently ran into an issue trying to setup my InfoViewer plugin
to call an external browser (firefox) for my Maya Editor Display Docs menu item. I'm on a mac and have looked for examples both here and randomly
on the internet, but haven't seen anything that can help.

I open up jEdit, go to Plugins, choose Plugin Options, switch my browser options to External Browser and for the External Browser Command I type in the
path to where the firefox application lives - Macintosh HD/Applications/Firefox.app. When I go to Plugins >> Maya Editor >> Display Docs I keep getting
this following error or some variation thereof.

------------------

An Exception occured while starting the browser:

java.io.IOException: Cannot run program "Macintosh": error=2, No such file or directory

The command was:

Macintosh
HD/Applications/Firefox.app
file:/Macintosh HD/Applications/Autodesk/maya2011/docs/Maya2011/en_US/Commands/null.html

------------------

Maybe I'm not putting in the proper path naming convention for mac or something, but If anyone can point me in the right direction on how to fix this issue I would greatly appreciate it.

Thanks in advance.
how to make a literal1 with same color
Submitted by urih on Wednesday, 2 February, 2011 - 14:47
Hi there,

I use perl mode and see that a line which looks like:


print "\n\nEND !!! sleep $date print \n\n";


gets a pink color inside the " (quote) chars.
inside this quotes "$date" which is a perl keyword has a different color as defined in the rest of the code.


how is it possible to tweak this behavior so everything inside the string "....." is in the same highlight?

thanks

uri
Number padding
Submitted by akovia on Wednesday, 2 February, 2011 - 19:06
Hi,
Wanted to find an easy way to pad line numbers. I am using the numbering lines macro, and wanted to know how hard it would be to add an option to add padding, and possibly an input box to format the result with brackets or other symbols. I am not a programmer but am able to do what I want each time via regex. Just looking for an easier way. Reading over the beanshell help, it looks to be a little more than I could handle without some help.

Thanks,
Ako
Search and Replace EVERY 2nd occurrence i.e. alternate occurrences
Submitted by highab on Thursday, 3 February, 2011 - 10:45
Hi, I'd like to be able to search and replace paragraph marks (\n) with tab marks (\t) for every other line down to the end of a document, effectively merging two lines into one with a tab in between.

thus turning

term1
term2
something else 1
something else 2

into

term1[tab]term2
something else 1[tab]something else 2

this is the code I have so far

SearchAndReplace.setSearchString("\\n");
SearchAndReplace.setReplaceString("\\t");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.replace(view);
SearchAndReplace.setSearchString("\\n");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.find(view);

but if I put it into a loop for textarea number of lines, it replaces ALL occurrences of \n and not every other one.... I'm stumped.

Anyone have any ideas please?
Combining/sequencing macros
Submitted by highab on Thursday, 3 February, 2011 - 10:49
I have three macros to run one after the other (or combine into one if I can)....

macro 1: populate hypersearch window with results of search for text between specific tags (and the tags)
macro 2: copy the text from the hypersearch window to a new buffer
macro 3: delete the tags and the superfluous bits

if I run them manually they do what I want. If I try to combine them or call them from a fourth macro that just calls them, they don't work right... I think they try to run at the same time rather than waiting for the previous one to finish ("node has no children". How do I get around this please?
Explore Directory for ProjectViewer (Explore_Directory.bsh v1.0 by David Koenig)
Submitted by Bargle on Saturday, 5 February, 2011 - 21:41
This macro will bring up the default platform file manager if called on a directory from the ProjectViewer plugin. As noted in the java.awt.Desktop API documentation; On the Solaris Operating System and the Linux platform, this API is dependent on Gnome libraries.
HTML 5 tags like 'header', 'nav', 'article' marked as errors, HTML 5 DOCTYPE doesn't work
Submitted by zapyon on Tuesday, 8 February, 2011 - 15:38
Hi.

I am currently playing arround with HTML 5 and CSS 3, checking out their new features, and, of course, using jEdit for this.

When I use the new DOCTYPE definition of HTML 5

<!DOCTYPE html>

jEdit marks almost everything as bad XML/HTML.

If I use the old style

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

the old tags are recognised, but the new ones introduced with HTML 5 still get marked as errors, e.g. the ones mentioned in the subject line.

How can I setup jEdit in a way that it correctly accepts all HTML 5 tags and understands that new DOCTYPE definition, too?

I am currently using these jEdit plugins:
Accents
Beauty
Common Controls
Console
ErrorList
FTP
GnuRegexp
JDiff Plugin
Jakarta Commons
Jython Interpreter
Project Viewer
PythonClient
RETest
Sessions
ShortcutDisplay
SideKick
Templates
TextTools"
VoxSpell
WhiteSpace
XML
XSLT
XercesPlugin


Regards

Andreas

PS: I had to write this post twice. The first time, I had written the tags with their < and > and simply copied the plugin list from a saved plugin set file. When sending the post, I got a message the post was rejected and when going back to the previous screen in the browser, the post was lost. NOT NICE! Please warn before sending or enable editing the original text, or even offer an option to add HTML/XML text where required, in a form that is no security hazzard.
Has anyone gotten Clearcase plugin to work with Jedit 4.3.2?
Submitted by stantonio on Tuesday, 8 February, 2011 - 20:37
Has anyone gotten Clearcase plugin to work with Jedit 4.3.2?
I was using this plugin fine with 4.2 and now it doesn't seem to work and get error at startup.
The error is :
Cannot start: java.lang.NoSuchMethodError: console.Shell.registerShell(Lconsole/Shell;)V
9:12:23 AM [main] [error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.
PicASM PIC12X Edit Mode (assembly-pic12x.xml v1.0 by Brad Normand)
Submitted by bradn on Thursday, 10 February, 2011 - 00:48
Edit mode supporting PicASM syntax for PIC12X 12 bit instruction length series chips.

Specifically, this was developed with 12C508 to 12CE519 chips in mind, but is easily adaptable to other PIC microcontrollers. If anyone feels like enhancing this edit mode, go ahead and upload it!

Supports numeric literals in forms like 0xABC123, 0ABC123h, 01010101b, 42d, 01234567o.


Please remember to create an entry in the modes/catalog file or this edit mode won't show up!
How to jump to column #nnn?
Submitted by tobi_h on Monday, 14 February, 2011 - 12:41
Good day all,

I see how I can jump to a certain line in a document, but how can I jump to a column in such a line?

I have searched quite some time but found nothing...

Thx in advance for your time to comment,

greets, tobi Smiling
Some information about plugins more used
Submitted by tonimenen on Monday, 14 February, 2011 - 21:43
Hello everybody,

I think it could be very interesting to have the chance to sort the plugins by the number of downloads of each plugin, in that way it is possible to know which are the best pluggins to use by the community.
EclipseIcons download broken
Submitted by weberjn on Wednesday, 16 February, 2011 - 11:57
Hi,

when I try to download

http://plugins.jedit.org/plugins/?EclipseIcons

winrar complains that the archive ist broken:

! C:\Programme\Java\temp\EclipseIcons-1.0-6.zip: Unerwartetes Archivende

(unexpected end of archive)

XML plugin depends on this.
Missing Docking Menus on Plugin Windows?
Submitted by andrewleer on Friday, 18 February, 2011 - 04:20
http://superuser.com/questions/247038/missing-docking-options-in-jedit

Thank you,
Andrew J. Leer
ProjectViewer question
Submitted by ronw on Sunday, 20 February, 2011 - 08:55
I assume I overlooked something (new to jEdit), but when I added a new project, even after explicitly selecting it, it would not appear in the dockable window's Folder, File or Compact File listings until after I quit then restarted jEdit.

I am using jEdit 4.3.2 with ProjectViewer 3.0.1 on Windows XP SP3.
where does sidekickctags hide the ctags file?
Submitted by ronw on Wednesday, 23 February, 2011 - 17:02
I have looked many places to find the ctags generated by sidekickctags and can't find it. I would like to use those ctags files with the Tags extension since it provides some features that sidekick does not, but requires manually running ctags, so I was hoping I could just point it at the ones made by sidekickctags.
SQL Editor to highlight syntax
Submitted by hillman on Thursday, 24 February, 2011 - 02:37
Folks, I am new to JEdit and operate off of my personal Mac book (in the corporate world I use Windows and it's set of tools). I have a need to write SQL on my Mac and would like an editor to highlight syntax statements for Oracle for example. I do not see a plug-in indicating SQL, what am I missing?

Thanks.
changing actions associated with menu-bar menu items
Submitted by ronw on Saturday, 26 February, 2011 - 04:04
I figured out writing macros to run ctags on a file when it is saved or closed with pending changes. I found where I can re-assign actions to tool-bar items, and to context menu items, but I can't find any way to re-assign actions in menu-bar menu items to use my macros.

I assume I am overlooking something.
User login
Browse archives
« January 2011 »
MoTuWeThFrSaSu
 
1
2
3
5
6
7
8
9
10
11
13
14
15
18
19
20
22
23
26
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   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309