Skip to content

Commit

Permalink
Pygment style that uses default beamer-trek colors
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelet committed May 3, 2014
1 parent a7afe96 commit f35747c
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
*.nav
*.out
*.snm
*.toc
*.toc
pygments-style/build
pygments-style/dist
*.egg-info
33 changes: 33 additions & 0 deletions pygments-style/pygments_style_beamertrek/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""
beamer-trek
~~~~~~~~~~~
Beamer Trek default color theme for pygments.
"""

from pygments.style import Style
from pygments.token import Comment, Error, Generic, Keyword, Literal, Name, \
Operator, Text

class BeamerTrekStyle(Style):
"""
Beamer Trek default color theme.
"""

trek_lightyellow = '#ffff99'
trek_lightorange = '#ffcc66'
trek_darkorange = '#ff9933'
trek_darkpurple = '#664466'
trek_lightpurple = '#cc99cc'
trek_lightblue = '#99ccff'
trek_midblue = '#3366cc'

default_style = ''

background_color = '#000000'

styles = {
Comment: 'italic ' + trek_lightpurple,
Keyword: 'bold ' + trek_lightorange,
Literal: trek_lightyellow
}
29 changes: 29 additions & 0 deletions pygments-style/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/python

from setuptools import setup, find_packages

setup(
name="pygments-style-beamertrek",
version='0.1',
description='Pygments theme for default beamer-trek colors',
keywords='pygments style beamertrek',
license='BSD',

author='Jonathan Merritt',
author_email='[email protected]',

packages=find_packages(),
install_requires=['pygments >= 1.6'],

entry_points='''[pygments.styles]
beamertrek=pygments_style_beamertrek:BeamerTrekStyle''',

classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python'
]
)

0 comments on commit f35747c

Please sign in to comment.