blach / Textastic-Customization

http://www.textasticapp.com/
MIT License
181 stars 40 forks source link

Use CodeCompletion in undefined file type files #6

Closed suliveevil closed 4 years ago

suliveevil commented 4 years ago

Is there a way to use CodeCompletion in undifined file type files?

This is TextMate: You can define fileType

 1  {  scopeName = 'source.untitled';
 2     fileTypes = ( );
 3     foldingStartMarker = '\{\s*$';
 4     foldingStopMarker = '^\s*\}';
 5     patterns = (
 6        {  name = 'keyword.control.untitled';
 7           match = '\b(if|while|for|return)\b';
 8        },
 9        {  name = 'string.quoted.double.untitled';
10           begin = '"';
11           end = '"';
12           patterns = ( 
13              {  name = 'constant.character.escape.untitled';
14                 match = '\\.';
15              }
16           );
17        },
18     );
19  }
blach commented 4 years ago

Not really. You could possibly use "text.plain", since unknown file extensions use the "Plain Text" syntax definition by default.

suliveevil commented 4 years ago

Wow, trick get! thank you very much!🥰🥰🥰