The iPad is my preferred tool for research and checking the design of other websites. For saving content I use my Safari > iA Writer Shortcut, but for websites the iPad did not fit my needs because there was not a good way viewing source codes. Until I recently made a Shortcut that enables me to view sources codes with syntax highlighting on my iPad. The latter makes reading larger pages much better. With this Shortcut all you have to do is visit the page, tap the share icon and tap the Shortcut. The iPad runs the Shortcut and opens the page as an HTML file in Textastic.
How does the Shortcut work Like most Shortcuts it is quite simple, ones you made it. I use it in conjunction with Textastic, but you can also use apps like iA Writer. The downside with the latter is that syntax highlighting misses.
The Shortcut gets the URL from the Shortcut input and follows these steps:
- Get Title from Shortcut input: the first step in setting the title of the web page as the title of the HTML file.
- Text: this adds the HTML extension to file that we will be saving so that Textastic opens it as an HTML file.
- Get contents: this is the input for our file.
- Make HTML from Contents: turning the content into HTML.
- Scripting: combining all inputs and setting the name of the file.
- Open Textastic.
- Documents: saving the file to and opening it in Textastic.
If you want to use another app just change the app in step 6 and 7. You might want to change or delete the extension in step 2 when you are not using a code editor.
You can get the Shortcut for free to try it out yourself. When using it with Textastic you have to buy the app. This is a one time purchase of € 10.99 and it is worth it. It is my go to app for (S)FTP and editing HTML and CSS files when I’m not at home.
Last update: June 7, 2020