Sha256: 23ff776354f4b99daaeda993f620d734bc291fe766215dcba308d42838ba7571

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

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::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

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.beta.1 lib/asciidoctor-pdf/rouge_ext/themes/bw.rb
asciidoctor-pdf-1.5.0.alpha.18 lib/asciidoctor-pdf/rouge_ext/themes/bw.rb
asciidoctor-pdf-1.5.0.alpha.17 lib/asciidoctor-pdf/rouge_ext/themes/bw.rb