mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-21 23:33:26 +01:00
Explain how to convert .tmLanguage.json
and .tmLanguage.yml
files in doc/assets.md
This commit is contained in:
parent
d376a4b631
commit
6568fb775d
@ -16,6 +16,9 @@ in the `.sublime-syntax` format.
|
|||||||
2. If the Sublime Text syntax is only available as a `.tmLanguage` file, open the file in
|
2. If the Sublime Text syntax is only available as a `.tmLanguage` file, open the file in
|
||||||
Sublime Text and convert it to a `.sublime-syntax` file via *Tools* -> *Developer* ->
|
Sublime Text and convert it to a `.sublime-syntax` file via *Tools* -> *Developer* ->
|
||||||
*New Syntax from XXX.tmLanguage...*. Save the new file in the `assets/syntaxes` folder.
|
*New Syntax from XXX.tmLanguage...*. Save the new file in the `assets/syntaxes` folder.
|
||||||
|
If only `.tmLanguage.json` or `.tmLanguage.yml` file is available, use
|
||||||
|
[PackageDev](https://packagecontrol.io/packages/PackageDev) to convert it to `.tmLanguage.plist`
|
||||||
|
format and then rename the converted file to `.tmLanguage` file.
|
||||||
|
|
||||||
3. Run the `assets/create.sh` script. It calls `bat cache --build` to parse all available
|
3. Run the `assets/create.sh` script. It calls `bat cache --build` to parse all available
|
||||||
`.sublime-syntax` files and serialize them to a `syntaxes.bin` file.
|
`.sublime-syntax` files and serialize them to a `syntaxes.bin` file.
|
||||||
|
Loading…
Reference in New Issue
Block a user