slimsag / Packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slimsag's SublimeHQ Packages Fork

These packages are developed against the latest Sublime Text 3 Dev Build. Bugs may exist on older builds, and the format used is not compatible with builds older than 3092.

Installation

If you want to make changes to these packages and test them locally, fork this repository and then symlink the changed packages into your Packages folder.

Replace Python in the following commands with the name of the syntax to install.

OS X

$ git clone https://github.com/sublimehq/Packages.git
$ ln -s `pwd`/Packages/Python ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

Linux

$ git clone https://github.com/sublimehq/Packages.git
$ ln -s `pwd`/Packages/Python ~/.config/sublime-text-3/Packages/

Windows

On Windows, you can use directory junctions instead of symlinks (symlinks require administrative rights; directory junctions don't):

# Using PowerShell
PS> git clone https://github.com/sublimehq/Packages.git
PS> cmd /c mklink /J "$env:APPDATA/Sublime Text 3/Packages/Python" (convert-path ./Packages/Python)

Alternatively, download the portable version, and clone this repository directly as a subdirectory of the Data folder.


After you've finished, keep in mind that you're now overriding a default package. When Sublime Text updates to a new version, you'll run the risk of having an out-of-date package unless you pull the latest changes from this repository.

Adding a new language

Find an open-source .tmLanguage or .sublime-syntax file

  • With a .tmLanguage.json, .tmLanguage.yaml, or other, convert to .tmLanguage first:
    • Install the PackageDev plugin in Sublime Text 3.
    • Open the file with Sublime Text 3, press Cmd+Shift+P.
    • Search for PackageDev: Convert (YAML, JSON, PList) to and select Convert to: Property List
    • Rename the file to just .tmLanguage instead of .tmLanguage.plist (Sublime will not recognize it as a tmLanguage file otherwise).
    • Use Cmd+Shift+P and choose Set Syntax: Property List (XML)
    • Follow the steps below to convert the .tmLanguage to .sublime-syntax
  • With a .tmLanguage file:

Create a PR to this repository

Your PR should include:

  • A folder like https://github.com/slimsag/Packages/tree/master/GraphQL with the final .sublime-syntax file.
  • A SOURCE file with a URL where the syntax came from (e.g. link directly to the tmLanguage file on GitHub).
  • A VERSION file with the Git commit hash of the SOURCE.
  • An entry in the License table below, describing the license of the directory.

License

All contents are licensed under the following licenses, which allow for free commercial use and distribution of the files:

All files are licensed under the sublimehq/Packages MIT + Common License*, with different licenses for files generated by following the steps in a directory containing a SOURCE file:

Directory License Source
All, except those specified below MIT + Common License* sublimehq/Packages
VimL/ MIT evandroforks/VimL
Puppet/ MIT russCloak/SublimePuppet
Nix/ MIT rvantonder/sublime-nix
Move/ MIT rvantonder/move-sublime-highlighting
Julia/ MIT JuliaEditorSupport/Julia-sublime
INI/ Apache-2.0 jwortmann/ini-syntax
Elm/ MIT elm-community/SublimeElmLanguageSupport
Coq/ MIT whitequark/Sublime-Coq
Zig/ MIT ziglang/sublime-zig-language
TOML/ MIT sourcegraph/TOML-syntax-highlighting
Terraform/ MIT alexlouden/Terraform.tmLanguage
GraphQL/ MIT rvantonder/gql-sublimetext-yolo
DreamMaker/ MIT Wirewraith/sublime-DM
Kotlin/ Apache License 2.0 vkostyukov/kotlin-sublime-package
Dockerfile/ Apache License 2.0 moby/moby
COBOL/ Apache License 2.0 bitlang/sublime_cobol
Dart/ BSD 3-Clause License guillermooo/dart-sublime-bundle-releases
Cuda/ BSD 3-Clause License harrism/sublimetext-cuda-cpp
Thrift/ Common License* airamare01/thrift.tmbundle
Smarty/ Common License* amitsnyderman/sublime-smarty
Postscript/ Common License* textmate/postscript.tmbundle
Plist/ Common License* textmate/property-list.tmbundle
Ninja/ Common License* textmate/ninja.tmbundle
Mediawiki/ Common License* slimsag/mediawiki.tmbundle
Maven/ Common License* textmate/maven.tmbundle
Man/ Common License* textmate/man-pages.tmbundle
Forth/ Common License* textmate/forth.tmbundle
F#/ Common License* textmate/f-sharp.tmbundle
Cython/ Common License* textmate/cython.tmbundle
Cron/ Common License* textmate/cron.tmbundle
CapnProto/ Common License* textmate/capnproto.tmbundle
CMake/ Common License* textmate/cmake.tmbundle
ASP-VB-NET/ Common License* textmate/asp.vb.net.tmbundle
Vue/ MIT License vuejs/vue-syntax-highlight
TypeScript/ MIT License rvantonder/TypeScript-Sublime-Plugin
Swift/ MIT License quiqueg/Swift-Sublime-Package
Stylus/ MIT License billymoon/Stylus
Starlark/ MIT License slimsag/vscode-bazel
Smalltalk/ MIT License textmate/smalltalk.tmbundle
SASS/ MIT License slimsag/sass-textmate-bundle
Rust/ MIT License rust-lang/rust-enhanced
Protobuf/ MIT License VcamX/protobuf-syntax-highlighting
PowerShell/ MIT License slimsag/EditorSyntax
MSBuild/ MIT License tillig/SublimeMSBuild
LESS/ MIT License textmate/less.tmbundle
JavaScript/ MIT License slimsag/Sublime-JS-Custom-Generated
HLSL/ MIT License MattSutherlin/HLSL_ST3
GLSL/ Unlicense euler0/sublime-glsl
Fish/ MIT License Phidica/sublime-fish
Ethereum/ MIT License davidhq/SublimeEthereum
Cg/ MIT License noct/sublime-shaders
Elixir/ MIT License princemaple/elixir-sublime-syntax
Cue MIT License cue-sh/vscode-cue
Apex BSD 3-Clause + MIT forcedotcom/apex-tmLanguage
VHDL BSD 3-Clause sigasi/sigasi-tmlanguage
Verilog BSD 3-Clause sigasi/sigasi-tmlanguage
RPMSpec MIT dreadatour/RPMSpec

Common License*

This indicates a common license used in TextMate syntax/grammar bundles, which reads as follows:

If not otherwise specified (see below), files in this repository fall under the following license:

Permission to copy, use, modify, sell and distribute this software is granted. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.

An exception is made for files in readable text which contain their own license information, or files where an accompanying file exists (in the same directory) with a “-license” suffix added to the base-name name of the original file, and an extension of txt, html, or similar. For example “tidy” is accompanied by “tidy-license.txt”.

If an exception is made for the file we use, it must be noted as such in the table above.

About

License:Other


Languages

Language:Erlang 13.5%Language:Perl 11.2%Language:Python 6.5%Language:C# 6.3%Language:D 5.7%Language:Java 5.6%Language:Go 5.1%Language:C++ 4.8%Language:Shell 4.2%Language:JavaScript 4.1%Language:Objective-C++ 4.0%Language:Clojure 3.5%Language:PHP 3.1%Language:Scala 2.7%Language:Classic ASP 2.6%Language:CSS 2.3%Language:Ruby 2.2%Language:Lua 1.7%Language:Makefile 1.6%Language:C 1.4%Language:Batchfile 1.4%Language:Objective-C 1.4%Language:HTML 1.3%Language:Groovy 0.9%Language:TeX 0.7%Language:Tcl 0.6%Language:R 0.6%Language:Haskell 0.3%Language:MATLAB 0.3%Language:OCaml 0.2%Language:Common Lisp 0.2%Language:Pascal 0.0%Language:ActionScript 0.0%