HP Forums
cas program edition in 2D but with Word Wrap [Request] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: cas program edition in 2D but with Word Wrap [Request] (/thread-5708.html)



cas program edition in 2D but with Word Wrap [Request] - compsystems - 02-18-2016 04:53 PM

sorry for my bad English

I have noticed that the CAS program editor displays the math expressions in pretty-print (2D), please enter the following code in the normal editor
[Shift] [1(Program)] then NEW, name prg1, CAS ☑

Code:
#cas
prg1(x,y):=
BEGIN
  a:=seq(x^2,x,1,3);
  return a;
   √(x^2+Y^2)/5;  
END;
#end

then
[Shift] [Tools(Mem)] the CAS vars, edit PRG1, EDIT

All the math expression are displayed in 2D =), but all the program is displayed on a single line =[

prg1(x,y)->BEGIN a:=seq(x²,x,1,3); RETURN(a); √x²+Y²; END;
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯5¯¯¯¯¯

my suggestion is to show the prg in full screen (with word wrap), otherwise it is very difficult to perform editing for line

replace every semicolon with new line


Good idea?
+1


RE: cas program edition in 2D but with Word Wrap [Request] - compsystems - 02-18-2016 05:13 PM

Now, I remember, the calculators Texas Instruments serie TI-Nspire are the only calcs, that programs allow editing 2D (pretty print)

[Image: maxresdefault.jpg]

the hpprime is just a step, match and exceed this feature opponents

video editing programs 2D






RE: cas program edition in 2D but with Word Wrap [Request] - Tim Wessman - 02-18-2016 08:30 PM

2D program source editing isn't a good feature though...


RE: cas program edition in 2D but with Word Wrap [Request] - Han - 02-19-2016 02:42 PM

2D editing would be a nice feature for notes, but it is not a feature I would want for editing source code. Having mono fonts and fixed vertical spacing makes for more legible code. It also makes it easier to debug code. The last thing I want to deal with is whether a syntax error was due to mixing the denominator of a fraction with the rest of the code on the same line.