Skip to content

Sublime-Instincts/PrismaHighlight

Repository files navigation

PrismaHighlight

LICENSE Sublime Text Tag Downloads Syntax tests

A community Sublime Text package that offers enhanced syntax highlighting for Prisma schema files. Read more for the full documentation.

Prisma Highlighting Example

Features

  • Enhanced syntax highlighting for Prisma schema files.
  • Quickly navigate through models, enums, types etc. defined in your schema files using Goto Symbol.
  • Ability to comment using the standard key bindings.

Installation

Package Control

  1. The recommended way is to use Package Control: Install Package from the command palette. Search for Prisma and hit enter. The package will be installed. Package Control will take care of auto updating the package as & when there are new tagged releases.

  2. Another way to install is to use Package Control: Add Repository from the command palette. Copy the github url (without the .git at the end) and enter it into the input panel that pops up at the bottom when you select Package Control: Add Repository. Now use Package Control: Install Package and search for Prisma and install it. This is not the recommended way though, as this will periodically pull changes from the main/master branch. So there are chances of features breaking.

Documentation

How to use this package ?

By default, this package will provide syntax highlighting for any file with .prisma as the extension.

Reporting issues.

There is always scope for improvements, so please do report any bug(s) that you encounter.

Please follow the issue template that has been setup while reporting any bug(s) (So as to stay as organised as possible).

Acknowledgements.

The syntax_test.yml is taken & used (with some modifications) from the official Packages repository. So full credit goes to them for it.

License

The MIT License (MIT)

Copyright 2022 © Ashwin Shenoy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.