0

Custom code definitions

RaianStar 10 years ago in General updated 10 years ago 2
I know we have this, but I don't know how to create one.  If we had access to the existing definition files, we could reverse engineer them and make our own without the need to create tutorials and such.

i.e. I don't like that HTML5 inserts <br /> instead of <br>.  That's HTML 4 code.  I also prefer tab over double space.  If I could see what currently exists as a default, and could edit it and save it as a custom template, that would be really useful to me.
The code completions files can be found at https://github.com/blach/Textastic-Customization

You can modify the "br" behavior by changing the "defaultAppend" string in line 165 (https://github.com/blach/Textastic-Customization/b...

Syntax definitions can be found by searching for "<languagename> tmbundle". Textastic supports textmate 1 syntax definitions. For example, the HTML syntax definition can be found at https://github.com/textmate/html.tmbundle/tree/textmate-1.x
Thank you so much for this :)
Great app by the way :)
It's really handy that I can take my coding to iOS if I need to :)