An open API service indexing awesome lists of open source software.

https://github.com/hyrious/typst-syntax-highlight

Typst sublime text syntax highlighting
https://github.com/hyrious/typst-syntax-highlight

Last synced: 5 days ago
JSON representation

Typst sublime text syntax highlighting

Awesome Lists containing this project

README

          

# Typst syntax highlight

[![](https://img.shields.io/badge/license-MIT-brightgreen)](./LICENSE.txt)
[![](https://img.shields.io/badge/Sublime%20Text-4-ff9800)](https://www.sublimetext.com/blog/articles/sublime-text-4)





screenshot

## Install

- Via Package Control: search for `Typst`.
- Manual: clone this repo into your Sublime `Packages` folder.

## Recipes

### Show auto complete panel without pressing TAB

You can create a [syntax specific settings](https://www.sublimetext.com/docs/settings.html#syntax-specific-settings)
with the config below:

```json
{
"auto_complete_selector": "text.typst"
}
```

### Build with Makefile

You can create a [build system](https://www.sublimetext.com/docs/build_systems.html)
with the config below:

```json
{
"cmd": ["make"],
"selector": "text.typst",
"file_regex": "┌─ (...*?):([0-9]*):?([0-9]*)",
"env": { "NO_COLOR": "1" },
"cancel": { "kill": true }
}
```

## Development

### Update available syntaxes for `raw`

Required: `cargo` (Rust), `just` (optional)

First, update version of `typst-syntax` in `gen/Cargo.toml`, then run:

```sh
just
```

## License

MIT @ [hyrious](https://github.com/hyrious)