Sha256: c304103872b1a7a2cc456b0db7bffcd6f6b8d9c477afb48ca807861a4fd698e0

Contents?: true

Size: 1.51 KB

Versions: 17

Compression:

Stored size: 1.51 KB

Contents

# -*- coding: utf-8 -*- #
# frozen_string_literal: true

module Rouge
  module Themes
    # A port of the bw style from Pygments.
    # See https://bitbucket.org/birkenfeld/pygments-main/src/default/pygments/styles/bw.py
    class BlackWhiteTheme < CSSTheme
      name 'bw'

      style Text,                        :fg => '#000000', :bg => '#ffffff'

      style Comment,                     :italic => true
      style Comment::Preproc,            :italic => false

      style Keyword,                     :bold => true
      style Keyword::Pseudo,             :bold => false
      style Keyword::Type,               :bold => false

      style Operator,                    :bold => true

      style Name::Class,                 :bold => true
      style Name::Namespace,             :bold => true
      style Name::Exception,             :bold => true
      style Name::Entity,                :bold => true
      style Name::Tag,                   :bold => true

      style Literal::String,             :italic => true
      style Literal::String::Affix,      :bold => true
      style Literal::String::Interpol,   :bold => true
      style Literal::String::Escape,     :bold => true

      style Generic::Heading,            :bold => true
      style Generic::Subheading,         :bold => true
      style Generic::Emph,               :italic => true
      style Generic::Strong,             :bold => true
      style Generic::Prompt,             :bold => true

      style Error,                       :fg => '#FF0000'
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rouge-4.2.1 lib/rouge/themes/bw.rb
rouge-4.2.0 lib/rouge/themes/bw.rb
rouge-4.1.3 lib/rouge/themes/bw.rb
rouge-4.1.2 lib/rouge/themes/bw.rb
rouge-4.1.1 lib/rouge/themes/bw.rb
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/themes/bw.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/themes/bw.rb
rouge-4.1.0 lib/rouge/themes/bw.rb
rouge-4.0.1 lib/rouge/themes/bw.rb
rouge-4.0.0 lib/rouge/themes/bw.rb
rouge-3.30.0 lib/rouge/themes/bw.rb
rouge-3.29.0 lib/rouge/themes/bw.rb
rouge-3.28.0 lib/rouge/themes/bw.rb
rouge-3.27.0 lib/rouge/themes/bw.rb
rouge-3.26.1 lib/rouge/themes/bw.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/themes/bw.rb
rouge-3.26.0 lib/rouge/themes/bw.rb