Posted: Sat Sep 30, 2017 8:30 pm
With each update, this program lets you create a compact index of SPL. If you move it to the folder where you are designing a program, the ManualOut.txt file can give you a quick format check of any function. Or copy the compact index and paste it right into the program you are building. Be sure to comment it out before you test run your program! The instructions are in the comments at the head of the program.
Code: Select all
'' Convert Manual by rbytes September 2017 Instructions: 1. Navigate to the SPL Help Index page 2. Copy the entire page 3. Create a file in this program’s path called "manual.txt" 4. Paste the text into it 5. Change the text in the temp variable (line 4 of code) to the correct SPL version. 7. Run this program. 6. Keep the "ManualOut" file handy as you design programs. It is a compact index. 7. You can quickly check the format of a function. 8. With practice, you can copy functions from it faster than you can type them, especially if you paste the compact index into your program while you are building it. 9. Update the compact index with each new version of SPL. '' f1="Manual.txt" f2="ManualOut.txt" ? #.fexist(f2), #.fdelete(f2) temp="SPL Manual V23" temp2="" q = ["#.cr","#.crlf","#.e","#.lf","#.pi","#.quot","#.rs","#.tab"] r = #.size(q,1) #.output(r) #.writetext(f2,temp+#.lf) temp="" > ! #.fend(f1) temp=#.readline(f1) ? #.size(temp) > 2 skip = 0 > t,1..r ? q[t] = temp, skip = 1 < ? skip temp2 += temp + " " ! temp2 += temp + "() " . ! ? #.size(temp) = 1 #.writetext(f2,temp2+#.lf) #.writetext(f2,temp+": ") temp2 = "" ! #.writetext(f2,temp+#.lf) . . < #.writetext(f2,temp2+#.lf) #.fontsize(40) #.drawtext(550,200,"Done!") #.end()