Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prisma Schema: Add .prisma syntax highlighting for Sublime Text #2336

Closed
matthewmueller opened this issue Apr 30, 2020 · 7 comments
Closed
Assignees
Labels
kind/feature A request for a new feature. topic: editor
Milestone

Comments

@matthewmueller
Copy link
Contributor

matthewmueller commented Apr 30, 2020

Problem

While we already have syntax highlighting for VSCode and GitHub, we should also add syntax highlighting to Sublime Text.

Solution

We can re-use https://github.com/prisma/vscode/blob/master/syntaxes/prisma.tmLanguage.json
in Sublime Text https://www.sublimetext.com/docs/3/syntax.html

But we'd still need an extension for this.

@matthewmueller matthewmueller changed the title Prisma Schema: Add syntax highlighting for Sublime Text Prisma Schema: Add .prisma syntax highlighting for Sublime Text Apr 30, 2020
@matthewmueller matthewmueller added the kind/feature A request for a new feature. label Apr 30, 2020
@carmenberndt
Copy link

carmenberndt commented May 12, 2020

Since SublimeText only accepts .sublime-syntax and .tmLanguage files for syntax highlighting, we have to convert our .tmLanguage.json to a .tmLanguage file.
There's a VS Code extension that lets you convert that easily though.

@carmenberndt carmenberndt self-assigned this May 12, 2020
@carmenberndt
Copy link

I created a repo here:
https://github.com/prisma/sublimeText3
Currently waiting for the PR to be merged: wbond/package_control_channel#7928

@carmenberndt carmenberndt modified the milestones: Beta 5, Beta 6 May 12, 2020
@janpio
Copy link
Member

janpio commented May 12, 2020

What a nice fight with "Package Control Bot" ⚔️

@carmenberndt
Copy link

Update: PR got merged. Closing this issue.

@janpio
Copy link
Member

janpio commented May 25, 2020

How does this work for users of Sublimetext now?

@carmenberndt
Copy link

sublimeText

Users only have to change 'Plain Text' to 'Prisma' when they open a file. If users want to automatically detect .prisma files, they have to set this option (https://stackoverflow.com/questions/27454555/how-do-i-set-sublime-text-to-auto-detect-a-file-type-after-setting-it-once/27456902#27456902)

@janpio
Copy link
Member

janpio commented May 25, 2020

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. topic: editor
Projects
None yet
Development

No branches or pull requests

3 participants