You can put the linefeeds in yourself. a=:'ab',LF,'cd',LF,'ef',LF,'gh',LF,'ij' a ab cd ef gh ij $a 14 b=: 'ab','cd','ef','gh',:'ij' b ab cd ef gh ij $b 5 2 c=: 0 : 0 ab cd ef gh ij ) c ab cd ef gh ij $c 15
Note that a is a 14 character string which displays linefeeds and b is a 5 2 array. c is a 15 character string because of the extra LF you have used to moved to the last line ')' in your explicit definition. Hope this helps, Cheers, bob On Feb 15, 2014, at 10:09 AM, Henry Rich <henryhr...@nc.rr.com> wrote: > Usually put it into .ijs, but you can copy it into .ijx, then select it all > in the .ijx, and do Run|Selection. > > Henry Rich > > On 2/15/2014 1:06 PM, Asdasd Asdasd wrote: >> >> >> >> Hi, I'm a novice in J and I was trying to define a noun as a multi-line text >> like this: >> >> txt =: 0 : 0 >> ab >> cd >> fg >> hi >> jk >> ij >> ) >> >> I tried first executing the first line (txt =: 0 : 0) and then pasting (ctrl >> v) my text. The result was only 'ij'. >> I tried then to execute the first line and press F8 (run clipboard), getting >> 0!:101 inputx_jrx_ as a result. >> >> So, is there a way to assign multiline text to a noun without having to >> create a new ijs and running from there? >> >> Thanks. >> >> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm