How can I add my own syntax definitions and themes?

Textastic allows you to add your own custom syntax definitions and themes. You can add TextMate-compatible .tmbundle packages and .tmTheme files.

Add Folder

Go to the root folder in the Files section. Tap on the "+" button.

Enter Folder Name

Choose "Folder" and enter "#Textastic" as the Folder Name. Tap "Done".

Check folder icon

Make sure the newly created folder has a special icon as seen in the screenshot. The name of the folder is case sensitive.

Copy custom syntax definitions and themes

Copy your .tmbundle TextMate bundles and .tmTheme themes into the newly created directory.

Restart the app

The new files are loaded on application startup. Please restart the app for changes to take effect.

To do this, leave the app by tapping on the home button once. Then open the task switcher by hitting the home button twice, and then hold down on Textastic until the icon starts jiggling. A red “-” should appear on the corner of the app icon. Press it to quit the app.

After you start the app, the new syntax definitions can be chosen in the File Properties popover. You can select added themes in the settings screen.

Previous Lesson: Which file types are supported? Table of Contents Next Lesson: How can I show a list of recently opened files? How can I close the current file?