GithubHelp home page GithubHelp logo

dark-snek-syntax's Introduction

Dark Snek Syntax theme

A syntax highlighting theme for MagicPython based off 'One Dark' with lots of tweaks to the existing colors and several Python-specific syntax highlighting features not taken advantage of in the original.

It blends in cleanly with the 'One Dark' UI theme, but any dark ui theme should do.

Non-python languages will still retain the base syntax highlighting from the 'One Dark' syntax theme.

dark-snek-syntax

Install

Search for it under Install in the Atom settings menu. Make sure to look for Themes and not Packages. It can then be activated by going to the Settings > Themes section and selecting it from the Syntax Themes drop-down menu.

Colors

teal        - for built-ins, magic methods, types etc.
orange      - Class name color in class def and various misc uses (such as the curly braces in f-strings, constants, the ellipsis, etc.)
yellow      - for 'class', 'def', and 'lambda' keywords

lightblue   - for singletons (None, True, False), numeric literals (1, 1.5, 2e3, etc.), and, arithmetic operators (+, -, \*, /, //, %, etc.)
darkblue    - for functions and method names in defs, as well as in calls

lightpurple - for flow control (for, while, if, else, try, except, finally, with, raise), and imports
darkpurple  - for function and method arguments (except those highlighted especially as lightred), and all assignment operators (=, +=, etc.)

lightgreen  - for strings
darkgreen   - for logical operators (and, or, not, in, is), comparison operators (==, !=, >, <, etc.) and bitwise operators (&, |, ~, etc.). Basically anything that resolves to True or False.

lightred    - for important non-keyword variable names like 'self', 'cls', etc.
darkred     - for errors

I've also redone the regex syntax (available for strings that are preceded by a lower-case 'r') like so:

teal        - for normal characters that match themselves
orange      - for named group assignments (e.g. '(?P<SomeName>SomeRegex)')
yellow      - for the start-of-string ('^') and end-of-sring ('$') anchors

lightblue   - for ordinary escaped sequences with no special meaning (e.g. '\(', '\.')
darkblue    - for character groups (e.g. '[abc]', '[A-Za-z0-1]')

lightpurple - for special escaped characters representing character groups (e.g. '\d', '\w') and the match-anything operator ('.')
darkpurple  - for the opening and closing parentheses of capture groups as well as backreferences to previous capture groups (e.g. '\1', '(?P=SomeName)')

lightgreen  - for lookaheads ('(?=SomeRegex)') and lookbehinds ('(?<=SomeRegex)')
darkgreen   - for quantifiers (e.g. '\*', '+', '?', '{1,3}', etc.)

lightred    - for negated lookaheads ('(?!SomeRegex)') and negated lookbehinds ('(?<!SomeRegex)')
darkred     - for the negation operator ('^') in a character group (e.g. '[^abc]')

Everything else is unchanged from the One Dark theme.

dark-snek-syntax's People

Contributors

simurai avatar matthewgdv avatar kevinsawicki avatar benogle avatar pgkos avatar maxbrunsfeld avatar burodepeper avatar lee-dohm avatar colllin avatar thomasjo avatar livelazily avatar zeke avatar collect avatar taylon avatar ryanolsonx avatar rgreenjr avatar mcolyer avatar down10 avatar izuzak avatar felixsanz avatar thedaniel avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.