Byron Clark avatar Byron Clark committed b80f6b3

Initial revision.

Comments (0)

Files changed (2)

pygments_style_tommorw_night/__init__.py

+# -*- coding: utf-8 -*-
+"""
+tomorrow night
+--------------
+
+Port of the tomorrow night color scheme for Vim.
+"""
+
+from pygments.style import Style
+from pygments.token import Comment, Error, Keyword, Name, Number, Operator, \
+                           Punctuation, String, Text
+
+
+class TomorrowNightStyle(Style):
+    """
+    Port of the tomorrow night color scheme for Vim.
+    """
+
+    default_style = ''
+
+    background_color = '#c5c8c6'
+    highlight_color = '#373b41'
+
+    styles = {
+        Comment: 'italic #969896',
+
+        Error: '#cc6666',
+
+        Keyword: '#1d1f21',
+        Keyword.Reserved: '',
+        Keyword.Type: '#81a2be',
+
+        Name: '#1d1f21',
+        Name.Attribute: '',
+        Name.Builtin: '#8abeb7',
+        Name.Builtin.Pseudo: '',
+        Name.Class: '#f0c674',
+        Name.Constant: '#de935f',
+        Name.Decorator: '#f0c674',
+        Name.Function: '#81a2be',
+        Name.Tag: '#1d1f21',
+
+        Number: '#1d1f21',
+
+        Operator: '#8abeb7',
+        Operator.Word: '',
+
+        Punctuation: '#1d1f21',
+
+        String: '#b5bd68',
+        String.Escape: '',
+
+        Text: '#1d1f21',
+}
+
+#!/usr/bin/python
+
+from setuptools import setup
+
+setup(
+    name = 'pygments-style-tommorow-night',
+    version = '0.1',
+    description = 'Pygments version of the "Tomorrow Night" vim theme.',
+    license = 'BSD',
+
+    author = 'Byron Clark',
+    author_email = 'byron@theclarkfamily.name',
+
+    url = 'https://bitbucket.org/byronclark/pygments-style-tomorrow-night',
+
+    packages = ['pygments_style_tomorrow_night'],
+    install_requires = ['pygments >= 1.4'],
+
+    entry_points = '''[pygments.styles]
+tomorrow-night = pygments_style_tomorrow_night:TomorowNightStyle''',
+
+)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.