Because the script closing tag in the string is interpreted , it will close the script tag early, and break the rest of the code as well as writing it all over the document. This can quite easily be countered by escaping the closing tag with a backslash, but that is inconvenient when dealing with large inline scripts.
When device rotation occurs, the page position changes due to many lines becoming wrapped (or unwrapped). This in itself isn't a horrible problem, but what tends to happen is this:
I am at line 5500, the file is 6200 lines.
I rotate to portrait. It pegs me at the bottom of the file. This clamps the y-offset.
Now I rotate back to portrait in hopes of returning to line 5500. I am dropped off around line 4000.
This is... not... ideal.
One great way to fix BOTH issues is to check the line# and return me to that position upon device rotation.
Note also that having a cursor present will prevent this issue (which is probably why this has not been reported yet). However having a cursor makes over 1/3 of the screen consumed by a keyboard so I *ensure* the keyboard is put away when I use Textastic to read code (as it's hardly practical to do actual coding), but it causes this issue every time (when i am near the bottom of a file).
So since I am JB'd i would use tweaks that let me force specific apps to be portrait-locked, but it's just not ideal because sometimes I do need to go landscape when the line wrapping gets to be overwhelming.
I'd like to edit my pythonista source files in Textastic, but I can't find the specification for the URL scheme.
If it's not there already, any plans for http://x-callback-url.com/ support? I'd love to send files to Textastic for editing, and then have them sent back to Pythonista afterwards...
Here's the documentation for the x-callback-url actions that will be supported in Textastic 4.4:
Customer support service by UserEcho