I've been experimenting with copying and pasting single lines of code from 
other web pages (mainly RosettaCode) to the JHS jijx window and trying to work 
with it.

This seems to work pretty well in IE8, but in Firefox it is very frustrating.

Using just the single line:

domain=. |.@|:@({...@[ + ] *~ j./&i.&>/@+.@(1j1 + ] %~ -~/@[))&>/

from:
http://rosettacode.org/wiki/Mandelbrot_set#J

It seems that when I copy from a webpage the html code (not just the displayed 
text) is copied (doesn't matter if copy from a page displayed in IE8 or 
Firefox). 

When I paste into IE the extraneous info is removed and I can successfully 
define the verb in the jijx window. However when I paste it into Firefox it 
attempts to retain the syntax highlighting info from RosettaCode. This is the 
source (using Firebug) for the prompt div in the jijx window after pasting the 
code.

<div class="log" id="prompt">&nbsp;&nbsp; domain=. |.@|:@<span class="sy0" 
_moz_dirty="">(</span>{...@[ + ] *~ j./&amp;i.&amp;&gt;/@+.@<span class="sy0" 
_moz_dirty="">(</span><span class="nu0" _moz_dirty="">1j1</span> + ]&nbsp;%~ 
-~/@[<span class="sy0" _moz_dirty="">))</span>&amp;&gt;/<br _moz_dirty=""></div>

Not the desired result! If I paste into IE8 jijx window and then copy out of 
there and paste into a Firefox jijx window then all is ok too.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to