jEdit Community - Resources for users of the jEdit Text Editor
Superscript plugin - I don't get it
Submitted by PauloSargaco on Wednesday, 8 September, 2004 - 15:33
Hi there.

I installed superscript and downloaded js.jar from Mozilla's Rhino. I then copied js.jar to {jedit.home}/jars and restarted jEdit. I also changed the superscript optins so that js is recognized as a macro extension. When I use superscript it seems that nothing useful happens. For instance, if I use the text box in the superscript docking window, when I type 2 +2, what I get in the results window is just an echo of what was typed:

-> 2 + 2

same thing with every instruction like parseInt("qwq123").

I also tried opening a js script with jEdit and using the Execute Script button. Nothing happens.

I must be missing something really obvious.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
What version of Rhino are you
by Anonymous on Mon, 04/10/2004 - 17:46
What version of Rhino are you using. am afraid, the Javascript engine for BSF is not very up todate. I had got Rhino working but only faintly remember the correct version something like ...1.4 or some early version of 1.5 so I guess you have to try different versions of Rhino since the later versions are incompatible with BSF. But once you get hold of the right version, it works like a charm.

Jiger
 
v1.5R5
by Anonymous on Sat, 09/10/2004 - 10:03
I'm using Rhino 1.5 Release 5. Maybe I'll try with an older version, thanks
 
Have you read instructions on
by Anonymous on Mon, 11/10/2004 - 06:29
Have you read instructions on this link http://www.mozilla.org/rhino/bsf.html

Jiger
Tried it for Ruby/jRuby
by Anonymous on Wed, 29/09/2004 - 20:10
Ignore my previous comment. I tried it out myself ... with Ruby, and the jRuby jar did indeed need to go into {jedit.home}/jars/ after installation of SuperScript

With the SuperSCript window, typing 2-2 gave me 0. (It does echo out "2-2" to the buffer, but it also gives the answer). This sounds like the same steps you took for JS/Rhino ... so I'm not sure what's going on.
I'm not an expert on this, as
by Anonymous on Wed, 29/09/2004 - 19:41
I'm not an expert on this, as I've never tried it before. But maybe the .jar should go in the macro directory?
 
That doesn't make much sense, but I'll try it any way
by Anonymous on Mon, 04/10/2004 - 13:01
So I tried it, and as expected it didn't work. I got org/mozilla/javascript/JavaScriptException. The macro folder is for actual scripts. I would put there .js files but not the js.jar which is a jar. Something like a java zip file. I also tried placing js.jar in the Documents and Setings\.jedit\jars folder but the behaviour I got was the same as when I had in the {jedit.home}\jars folder. Back to square one
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