ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Licence Snippets

by sijk ALL

Open source licence snippets for Sublime Text

Labels snippets

Details

  • 2018.12.10.15.25.55
  • github.​com
  • github.​com
  • 5 years ago
  • 37 minutes ago
  • 11 years ago

Installs

  • Total 4K
  • Win 2K
  • Mac 1K
  • Linux 1K
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

Licence Snippets for Sublime Text

This package provides the full text (for LICENCE files) as well as the recommended header text for several popular open-source licences as Sublime Text snippets. It makes inserting licence text in your source files quick and easy.

The licences included in this package are all OSI-Approved.

Feel free to submit an issue or pull request if there's a licence you'd like added.

Installation

Package Control

The easiest and best way to manage Sublime Text packages is with Package Control.

  1. Install Package Control if you haven't already.
  2. Choose Install Package from the command palette.
  3. Select Licence Snippets and press Enter. Easy.
Git

You can clone this repository into your Sublime Text Packages directory. You really should use Package Control, though.

Zip

You can download a zip file from here and extract it to your Sublime Text Packages directory. But seriously, just install Package Control.

Usage

To insert, for example, the MIT licence in a source file, open the command palette, type mit and choose Licence Snippet: MIT [Header] [Full Text] (or choose Licence Snippet: MIT [Header] [Full Text] from the snippets menu). The licence text will be inserted at the cursor. The copyright details (year, author, organization, etc.) will be highlighted in turn so that you can easily tab between them and modify them if necessary.

  • Licences suffixed with [Header] are intended to be used in the header section of a file in your project.
  • Licences suffixed with [Full Text] are ideally used to fill LICENCE or LICENCE.txt files.

Configuration

Two settings are available to configure the behaviour of this plugin. To set them, choose Preferences > Settings - User and add a line for the setting you want to change.

  • licence_comment_style = none, line, or block (default: line)
  • licence_wrap_lines = True or False (default: False)

You can switch between system user name and your custom author name. - use_name = system or author (default: system) - author_name = your_name_here (default: add “author_name”: “your_name” in preferences->settings(user))