Listing test - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Test forum (/forum-18.html) +--- Thread: Listing test (/thread-14081.html) Listing test - BruceH - 12-01-2019 09:56 AM Test of display of 12C code (taken from this post) Code: ``` Display        Source label    Comment 01-      35    CLx     02-    44 0    STO 0     03-    45 1    RCL 1     04-43,33 39    g GTO 39    xeq formula 05-      33    R↓     06-    44 4    STO 4     07-       1    1     08-    44 0    STO 0     09-    45 1    RCL 1     10-    45 1    RCL 1     11-      26    EEX     12-       5    5     13-      10    ÷     14-    44 3    STO 3     15-      40    +     16-43,33 39    g GTO 39    xeq formula 17-   43 35    g x=0     18-43,33 37    g GTO 37     19-    45 0    RCL 0     20-   43 35    g x=0     21-43,33 05    g GTO 05     22-      33    R↓     23-    45 4    RCL 4     24-      10    ÷     25-       1    1     26-      30    -     27-      22    1/x     28-    45 3    RCL 3     29-      20    ×     30- 44 30 1    STO ‒ 1     31-       2    2     32-      21    y^x     33-   43 21    g √x     34-    45 2    RCL 2     35-   43 34    g x≤y        X is less than or equal to Y 36-43,33 01    g GTO 01     37-    45 1    RCL 1        Answer 38-      31    R/S     #N/A    #N/A            Formula goes here 40-43,33 17    g GTO 17``` Still a bit experimental - the tabs don't align. This comes from a spreadsheet that generates the display codes automatically - is that of any use to anybody? RE: Listing test - Paul Dale - 12-01-2019 10:47 AM I think it would be useful. I'm not sure the test forum is the best place to ask a question like this Pauli RE: Listing test - BruceH - 12-01-2019 11:51 AM Thanks Paul. Still some more things to try out. Setting a fixed-width font might be better than the code tags - need to fix the padding though. 01- 35 CLx ... 40-43,33 17 g GTO 17 Ooops, it's not the padding it's the web page. Oh well. RE: Listing test - Paul Dale - 12-01-2019 11:57 AM   is a substitute for spaces on web pages and they are not squashed together. Pauli RE: Listing test - SlideRule - 12-01-2019 12:00 PM (12-01-2019 09:56 AM)BruceH Wrote:  Test of display of 12C code This comes from a spreadsheet that generates the display codes automatically - is that of any use to anybody? Yes, available? SlideRule RE: Listing test - pinkman - 12-01-2019 07:00 PM Yes sure it will help! I also created a decoder for 12C keycodes, if needed : in this thread RE: Listing test - BruceH - 12-03-2019 06:33 PM (12-01-2019 11:57 AM)Paul Dale Wrote:    is a substitute for spaces on web pages and they are not squashed together. Good point - I'd completely forgotten about that. Here goes... 01-      35  CLx 02-    44 0  STO 0 03-    45 1  RCL 1 04-43,33 39  g GTO 39 05-      33  R↓ ... Oh well. RE: Listing test - BruceH - 12-03-2019 06:36 PM Doesn't work for code either. Code: ```01-      35  CLx 02-    44 0  STO 0 03-    45 1  RCL 1 04-43,33 39  g GTO 39 05-      33  R↓ 06-    44 4  STO 4``` Maybe there's a change to accepted HTML that the forum admins can make? RE: Listing test - grsbanks - 12-03-2019 06:42 PM Code tags don't compress multiple spaces into one space. It probably converts it into a
HTML tag.   Code: `test      test      test`      RE: Listing test - Joe Horn -  12-04-2019 12:51 AM   If you use a Windows computer, you can type a non-breaking space in any text by holding down the Alt key while you type 0160 on the numeric keypad.  These spaces don't get combined by web browsers, as the following example illustrates.  | | one |  | two |   | three |    | four |     | five  Tedious indeed, but   ...   it works, without the drawbacks of Code blocks.  +-----+ |     | |     | +-----+     RE: Listing test - ijabbott -  12-04-2019 08:39 PM    (12-04-2019 12:51 AM)Joe Horn Wrote:  If you use a Windows computer, you can type a non-breaking space in any text by holding down the Alt key while you type 0160 on the numeric keypad.  These spaces don't get combined by web browsers, as the following example illustrates.  | | one |  | two |   | three |    | four |     | five  Tedious indeed, but   ...   it works, without the drawbacks of Code blocks.  +-----+ |     | |     | +-----+  Handy! If you have a 'compose' key, the sequence 'compose' 'space' 'space' often produces a non-breaking space.     RE: Listing test - BruceH -  12-05-2019 12:30 AM   Trying Joe's technique.  01-      35  	CLx	 02-   44  0  	STO 0	 03-   45  1  	RCL 1	 04-43,33 39  	g GTO 39	xeq formula 05-      33  	R↓	 06-   44  4  	STO 4	 07-       1  	1	 08-   44  0  	STO 0	 09-   45  1  	RCL 1	 10-   45  1  	RCL 1	 11-      26  	EEX	 12-       5  	5	 13-      10  	÷	 14-   44  3  	STO 3	 15-      40  	+	 16-43,33 39  	g GTO 39	xeq formula 17-   43 35  	g x=0	 18-43,33 37  	g GTO 37	 19-   45  0  	RCL 0	 20-   43 35  	g x=0	 21-43,33 05  	g GTO 05	 22-      33  	R↓	 23-   45  4  	RCL 4	 24-      10  	÷	 25-       1  	1	 26-      30  	-	 27-      22  	1/x	 28-   45  3  	RCL 3	 29-      20  	×	 30-44 30  1  	STO ‒ 1	 31-       2  	2	 32-      21  	y^x	 33-   43 21  	g √x	 34-   45  2  	RCL 2	 35-   43 34  	g x≤y	X is less than or equal to Y 36-43,33 01  	g GTO 01	 37-   45  1  	RCL 1	Answer 38-      31  	R/S	  	 	Formula goes here 40-43,33 17  	g GTO 17	   Need to specify a fixed-width font, and still a bit more to do if the comments are to align, but better.     RE: Listing test - BruceH -  12-07-2019 12:18 PM   Pretty much all there now.  01-      35  	CLx       	 02-   44  0  	STO 0     	 03-   45  1  	RCL 1     	 04-43,33 39  	g GTO 39  	xeq formula 05-      33  	R↓        	 06-   44  4  	STO 4     	 07-       1  	1         	 08-   44  0  	STO 0     	 09-   45  1  	RCL 1     	 10-   45  1  	RCL 1     	 11-      26  	EEX       	 12-       5  	5         	 13-      10  	÷         	 14-   44  3  	STO 3     	 15-      40  	+         	 16-43,33 39  	g GTO 39  	xeq formula 17-   43 35  	g x=0     	 18-43,33 37  	g GTO 37  	 19-   45  0  	RCL 0     	 20-   43 35  	g x=0     	 21-43,33 05  	g GTO 05  	 22-      33  	R↓        	 23-   45  4  	RCL 4     	 24-      10  	÷         	 25-       1  	1         	 26-      30  	-         	 27-      22  	1/x       	 28-   45  3  	RCL 3     	 29-      20  	×         	 30-44 30  1  	STO ‒ 1   	 31-       2  	2         	 32-      21  	y^x       	 33-   43 21  	g √x      	 34-   45  2  	RCL 2     	 35-   43 34  	g x≤y     	X is less than or equal to Y 36-43,33 01  	g GTO 01  	 37-   45  1  	RCL 1     	Answer 38-      31  	R/S       	  	 	Formula goes here 40-43,33 17  	g GTO 17