0
Under review

How to begin styling with css

Jenjen 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 1

Hi I have just finished writing my code on html using Textastic and I just don’t know how to get around opening another tab and setting it to css so that I begin styling my code


Answer

I assume that the .html file is stored somewhere in the "Local Files" or in the "iCloud" location.

  • In the same folder, tap the "+" button in the bottom toolbar.
  • Enter a file name with a ".css" file extension -> this opens a new CSS file in a new tab.
  • In the .html file, add a link tag to the head section as described at https://www.w3schools.com/tags/tag_link.asp 
  • If you now open the web preview using the glasses icon while the tab with the .html file is open, you should see the CSS styles from the .css file applied. You can also open the web preview on the .css file and enter the path to the .html file in the address bar of the web preview. This allows you to preview the website while previewing the .css file without having to switch to the .html file first.

Alternatively, you can add the CSS directly to the .html file using a style tag in the header section as described at https://www.w3schools.com/tags/tag_style.asp.

0
Under review

Shellfish drag and drop any file

Bartolomeo 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 1

Hi! It would be nice to drag and drop any file type from shellfish. As .tsx, .properties and any type. Thanks!

0

Hostname and iPad

DWM 4 years ago in iPad 0

I have a simple but irritating problem when setting up the terminal connection from an iPad. Would the hostname be http://(plus my IP address)? I ask because no combination of the settings appears to work. 

No matter how simple I make the password/username, they’re unrecognized and when I try the public key, I don’t have authorization. 


So... since I want the terminal to work without any ID or password, I am assuming that I’ve wrongly configured the iPad’s hostname. You have the example of textastic.com, I think... but what’s the structure of an end-user such as myself? 

I presumed it was the IP address, expressed as a URL— and that brings me back to the start of my message :-) 

Thanks 

0
Answered

Running python code in SSH

atonaltensor 4 years ago in iPad updated by Alexander Blach (Developer) 1 month ago 3

Hello, 

Maybe I am being dense, but I cannot see how I could execute/run python code I've written in my SSH terminal window. 


Example: I'm editing a file called "main.py" in Textastic with "print("Hello World!"). I want to be able to open the SSH terminal (into my local server) and be able to type "python main.py" to see "Hello World!" printed inside the SSH terminal window. 

How do I achieve this without having to manually copy and paste code?

Answer

Hello,

I would do it like this:

  • create the python file(s) in Textastic in a folder within "Local Files" or "iCloud"
  • use the file transfer screen to upload the files to your server using an SFTP connection
  • use the SSH terminal to run the python file on your server using the same connection
  • when you now make changes to the python files on your iPad, you can use the "Quick Upload" feature of Textastic to upload your file with two taps or a keyboard shortcut (Cmd-Option-Up)

Please have a look at these topics in the manual for details:

Uploading and Downloading Files: https://www.textasticapp.com/v10/manual/remote_servers/uploading_downloading.html

Quickly Upload/Download: https://www.textasticapp.com/v10/manual/remote_servers/quick_upload_download.html

0
Answered

Adding Rmd syntax highlighting

Jessica Temporal 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 4

Hello! First of all let me say: This is a great app! I’ve been using it for a week now and I love it!

I was trying to add syntax highlighting for .rmd files but the highlighting isn’t working. I followed the steps in the blogpost I saw linked in other topics, and used this .tmbundle I found on GitHub. But the syntax isn’t rendering, either I did something wrong, or the bundle isn’t working, I’d appreciate a little help fixing it.

Here’s a print showing a .rmd file and correctly detected highlight:

Image 423

Thanks in advance =)

0

Opening in Safari

Doug Lerner 4 years ago in iPad updated 4 years ago 2

Well, I dived in and purchased. It looks quite nice. I do have one question though (for now).

I touched on an html file in my iCloud Drive. It now opens by default in Textastic, which is fine. I edited it and that worked. And I touched the little eyeglasses icon and I could see the file as a web page, and that worked.

But, when I touch the ... icon and touch "open in Safari" nothing happens. How would I open the file in Safari?

Thanks.

0
Fixed

Built-in Preview window making several requests at the same time

Miguel 4 years ago in iPad updated 4 years ago 13

I am using the built-in preview to check my remote code after I upload it to the server. I do this periodically. Recently I started to notice that if I do it very often after a while my server started to reply with 508. I checked the logs and it seems the AppleWebKit is making several requests at once instead of just 1 normal request. The more I use it seems the more requests it makes. it seems it goes back to normal if kill Textastic and open it again. I suspect the Preview window is not getting killed properly and is running on the background.

0

Built-in Preview window making several requests at the same time

Miguel 4 years ago in iPad 0

i am using the built-in preview to check my remote code.

0
Under review

Golang completion & code formatting on iPad version

Nicolas_d 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 1

Hi !

I just bought Textastic code editor 9 for my iPad Pro and I’m facing a major issue at the moment. 

Looks like code coloration is working for my Golang files, but I do not manage to get any kind of completion & code formatting. Am I missing something ? 


All the other features (ssh & file syncing) work like a charm ! If I could get a deeper Golang integration, I could use this app on a daily basis for developing while on the road. 


Thanks for your future support :)


0

How to find files in Textastic memory cache

Doug Dyer 4 years ago in iPad 0

I am writing a PWA using JavaScript in Textastic. If I re run my code after a short interval, the database opens correctly (using indexedDBj). If re running after a long interval, I will often encounter this error: NotFoundError: Failed to execute 'transaction. Is there away to see what 'files' are stored in the Textastic memory cache?