Skip to main content

SublimeScheme allows you to easily create a Sublime text Color Scheme with a minimum of six lines of code.

Installation

pip install sublimescheme

Modules

Generate

Contains a class Make that takes two arguments (Theme name) and (Author's name)

Make has six methods which are:

  • start() –> This generates the xml header.

  • head() –> This generates the basic and most important features of your theme. e.g. foreground, background, caret, invisibles, line highlight, selection, find highlight, find highlight foreground, selection border and stack guide color. These are optional parameters too.

  • body() –> This is completely optional and is the main area for your color scheme customization. You can add as many body methods as possible. If none is given, you will have a slighly customized theme similar to Python's IDLE theme.

  • complete() –> This completes the theme.

  • readme() –> Although completely optional, it generates a README.md file and this is useful if you want to publish it.

  • package() –> Although completely optional, it creates a packages.json file which is useful if you want to share your theme on the Package control website

Example1

from sublimescheme.generate import *                #or
from sublimescheme.generate import Make

sample = Make("Mytheme", "Author")

sample.start()
sample.head(fg="#000", bg="#FFFFFF", ct="#F00")

# Optional and creates a Ruby highlighter for numbers
sample.body('Ruby: Numbers', 'constant.numeric.ruby', fs='italic', fg='#f0f', bg='#0ff')

sample.complete()
sample.readme("github.com/name/themename", "name@email.com")
make.package("github.com/name/themename", "name@email.com")

Result1

It will generate a python IDLE lookalike with an extra Ruby number highlighter.

Scopes

The Scopes module has 162 methods for showing several programming language scopes. The most important of all is the scopes method which lists all the 161 programming language supported. You can also view all the scopes directly on Github. You can then call your desired programming language name to see all the syntax highlight scopes it supports.

Example2

from sublimescheme.scopes import *          #or
from sublimescheme.scopes import scopes

print("all scopes")
scopes()

print("C++ Scopes")
cpp()

Result2

all scopes
Scope Name: scope
=================
Actionscript: source.actionscript
Active4D: source.active4d
Active4D_Html: text.html.strict.active4d
Active4D_Ini: text.active4d-ini
Active4D_Library: source.active4d.library
Ada: source.ada

.... etc ......


C++ scopes
C++
===
Scope name: source.c++

C++
entity.name.function.c
keyword.control.c++
keyword.operator.c++
keyword.operator.cast.c++
meta.function.constructor.c++
meta.function.destructor.c++
meta.function.destructor.prototype.c++

..... etc ......

Using locally

If you just want to use it locally, copy your generated .tmTheme into the sublime text packages

Packages –> Color Scheme - Default.

You will then be able to use it by going to:

Preferences –> Color Scheme - Default –> Themename

Acknowledgements

I was inspired to write this package after creating my own Sublime text color scheme called Wildlife. It was a really tedious and energy drenching job but thank God this is now available for anyone and makes things easier to use.

All glory belongs to God for helping me in completing this. Without him, this couldn’t have been written by me.

Contact

If further information or if help is needed, feel free to contact me on my email at taiwo.kareem36@gmail.com

Metadata

Release files for Sublimescheme 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for Sublimescheme 1.0.7
File Size Uploaded
Sublimescheme-1.0.7.zip 41.1 kB Details
Sublimescheme-1.0.7.tar.gz 38.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for Sublimescheme 1.0.7
File
Sublimescheme-1.0.7.win32.exe Details
Sublimescheme-1.0.7.linux-x86_64.tar.gz Details
Sublimescheme-1.0.7-1.src.rpm Details
Sublimescheme-1.0.7-1.noarch.rpm Details

Total release size: 527.1 kB

Release files / Sublimescheme-1.0.7.zip

Download URL Sublimescheme-1.0.7.zip
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
948acbd14785d8997c89b3559842a63bddc7bacb295ae0078939815f526385e2
BLAKE2b-256 checksum
How to use checksums
a07302f736e0ccb1de8eec7243f60afdc1ee82fd1bb7db28ae7f601a6df9bd28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sublimescheme-1.0.7.tar.gz

Download URL Sublimescheme-1.0.7.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dcb2075348dc98b6e1393bcf13725313d825d9a2304051af4b6c259628bf71ff
BLAKE2b-256 checksum
How to use checksums
fef77a889c43ee0a9b4dae863b88c714c92bdd2173cc3d1ff25bf9f2a5969595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sublimescheme-1.0.7.win32.exe

Download URL Sublimescheme-1.0.7.win32.exe
Size 234.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f4873829d90b7a177c3cce89a88fde86d970ef51fb84b2818d655fc98280dbf8
BLAKE2b-256 checksum
How to use checksums
7628185db2d5c2fa09d6e1c395ea32c2d0f480ecbb05e3d4b0dd41728684cf61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sublimescheme-1.0.7.linux-x86_64.tar.gz

Download URL Sublimescheme-1.0.7.linux-x86_64.tar.gz
Size 86.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a952002f1980753fe5626382de6b42a43d957027d7df77c708a24fc41cc10feb
BLAKE2b-256 checksum
How to use checksums
24ca82083c23c626b33a7fb346d04c7d9e0ba37c6ae851f4724645c068fb7b66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sublimescheme-1.0.7-1.src.rpm

Download URL Sublimescheme-1.0.7-1.src.rpm
Size 46.6 kB
Tags Source
SHA-256 checksum
How to use checksums
45b071d3bb0c6f5a09d8b591c48a820e4dde121c037db4613704961986a5aed4
BLAKE2b-256 checksum
How to use checksums
f0e475d60c4e24378042454ec05008962184c4096e376381b999d02e33c10c6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Sublimescheme-1.0.7-1.noarch.rpm

Download URL Sublimescheme-1.0.7-1.noarch.rpm
Size 80.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e37f2ab7e94cf61ae4d8506999246de8a03a6d30e519ef6d0ff5fc2bfb787e69
BLAKE2b-256 checksum
How to use checksums
37505c41e1e6f499e9cfa63d07d88b8fff06d0b409949a5632ca5745858181e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.7 This release

6 release files

1.0.6

6 release files

1.0.5

6 release files

1.0.4

6 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page