7

It will give you a selection when you open a new file in Textmate. It asks you what the file type is and let you select a grammar for the new file.

So how to change the file grammar after I selecting the grammar once?

Kerby
  • 81
  • 3

1 Answers1

28

There's a button on the bottom bar.

collapsed menu

You press it, and there they are, all possible syntax modes with their shortcuts:

expanded menu

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367