Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force textmate to apply a specific format's syntax highlighting?

I'd like to force HTML syntax highlighting on another extension (one of my colleagues has decided to use a different file naming scheme for his template files).

In other editors where can be manually selected, but Textmate doesn't seem to let me. How can I make these .randomtextension files show up as HTML?

like image 460
mikemaccana Avatar asked Jan 31 '11 11:01

mikemaccana


People also ask

How do you highlight on TextMate?

The key sequence SHIFT-CTRL-OPTION-D corresponds to an option in the language menu down at the bottom left of the Textmate window. The language menu tells Textmate what language to consider the file so it can determine the proper syntax highlighting.

What is TextMate grammar?

TextMate grammars are a structured collection of regular expressions and are written as a plist (XML) or JSON files. VS Code extensions can contribute grammars through the grammar contribution point. The TextMate tokenization engine runs in the same process as the renderer and tokens are updated as the user types.

What is the use of syntax highlighting?

Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.

What is a tmlanguage file?

What is a TMLANGUAGE file? Language grammar file used by TextMate, a Mac OS X source code editor; contains a specification for the syntax of a programming language; used for adding syntax highlighting support for additional languages.


1 Answers

In the bottom part of the window, select "Javascript" as the current language.

like image 150
Francesco Turci Avatar answered Nov 15 '22 21:11

Francesco Turci