lib/rouge/themes/monokai.rb in rouge-1.5.0 vs lib/rouge/themes/monokai.rb in rouge-1.5.1

- old
+ new

@@ -1,5 +1,7 @@ +# -*- coding: utf-8 -*- # + module Rouge module Themes class Monokai < CSSTheme name 'monokai' @@ -19,80 +21,9 @@ palette :soft_yellow => '#e6db74' palette :very_dark => '#1e0010' palette :whitish => '#f8f8f2' palette :orange => '#f6aa11' palette :white => '#ffffff' - - extend HasModes - - def self.sublime! - mode! :sublime - end - - def self.make_sublime! - style Generic::Heading, :fg => :grey - style Literal::String::Regex, :fg => :orange - style Generic::Output, :fg => :dark_grey - style Generic::Prompt, :fg => :emperor - style Generic::Strong, :bold => false - style Generic::Subheading, :fg => :light_grey - style Name::Builtin, :fg => :orange - style Comment::Multiline, - Comment::Preproc, - Comment::Single, - Comment::Special, - Comment, :fg => :dimgrey - style Error, - Generic::Error, - Generic::Traceback, :fg => :carmine - style Generic::Deleted, - Generic::Inserted, - Generic::Emph, :fg => :dark - style Keyword::Constant, - Keyword::Declaration, - Keyword::Reserved, - Name::Constant, - Keyword::Type, :fg => :soft_cyan - style Literal::Number::Float, - Literal::Number::Hex, - Literal::Number::Integer::Long, - Literal::Number::Integer, - Literal::Number::Oct, - Literal::Number, - Literal::String::Char, - Literal::String::Escape, - Literal::String::Symbol, :fg => :light_violet - style Literal::String::Doc, - Literal::String::Double, - Literal::String::Backtick, - Literal::String::Heredoc, - Literal::String::Interpol, - Literal::String::Other, - Literal::String::Single, - Literal::String, :fg => :soft_yellow - style Name::Attribute, - Name::Class, - Name::Decorator, - Name::Exception, - Name::Function, :fg => :bright_green - style Name::Variable::Class, - Name::Namespace, - Name::Label, - Name::Entity, - Name::Builtin::Pseudo, - Name::Variable::Global, - Name::Variable::Instance, - Name::Variable, - Text::Whitespace, - Text, - Name, :fg => :white - style Operator::Word, - Name::Tag, - Keyword, - Keyword::Namespace, - Keyword::Pseudo, - Operator, :fg => :bright_pink - end style Comment, Comment::Multiline, Comment::Single, :fg => :dimgrey, :italic => true style Comment::Preproc, :fg => :dimgrey, :bold => true