0
Planned

Support TOML

milotin-dragos yesterday at 5:33 p.m. in General updated yesterday at 9:45 p.m. 3

Hello. Would you be able to add full support for TOML? It’s a files that is being used more and more to capture configurations as well as low level data and having support would be greatly appreciated 

Answered

You can add custom syntax definitions to Textastic by using TextMate bundles or Sublime Text packages. See

https://www.textasticapp.com/v10/manual/customization/custom_syntax_themes_templates.html

A quick search for "TOML sublime text" on Google brought up this Sublime Text package which I just tried out and which seems to work fine with Textastic:

https://github.com/jasonwilliams/sublime_toml_highlighting

Please try the following:

  • Go to https://github.com/jasonwilliams/sublime_toml_highlighting in Safari on your iPad/iPhone
  • Tap the green "Code" button and select "Download ZIP"
  • Unzip the file in the Files app. This will create a folder that contains the sublime package files. (Optionally you can rename this folder to "TOML")
  • Move or copy that folder into the folder "On my iPad/Textastic/#Textastic/". This is equivalent to this folder in Textastic: "Local Files/#Textastic/".
  • In Textastic, go to Settings -> Other and tap "Reload Customizations"

You can now select "TOML" from the list of syntax definitions in the File Properties.

Please note that this is a third-party syntax definition, not officially maintained by Textastic.

Here is a screenshot of how this looks in Textastic with a sample TOML document and the Vintage theme:

Image 697

Planned

I'll consider adding TOML as a built-in language in a future update.

Thank you Alexander. This worked on my end as well. Very much appreciated you looking into this so promptly. Have a great day and thanks. 🙏