class Tartrazine::Html
 
  - Tartrazine::Html
 - Tartrazine::Formatter
 - Reference
 - Object
 
Defined in:
formatters/html.crConstructors
Instance Method Summary
- 
        #class_prefix : String
        
          
property line_number_in_table : Bool = false property with_classes : Bool = true
 - 
        #class_prefix=(class_prefix : String)
        
          
property line_number_in_table : Bool = false property with_classes : Bool = true
 - #format(text : String, lexer : BaseLexer, io : IO) : Nil
 - 
        #format(text : String, lexer : Lexer) : String
        
          
Format the text using the given lexer.
 - #format_text(text : String, lexer : BaseLexer, outp : IO)
 - 
        #get_css_class(token : String) : String
        
          
Given a token type, return the CSS class to use.
 - #highlight_lines : Array(Range(Int32, Int32))
 - #highlight_lines=(highlight_lines : Array(Range(Int32, Int32)))
 - 
        #highlighted?(line : Int) : Bool
        
          
Is this line in the highlighted ranges?
 - #line_number_id_prefix : String
 - #line_number_id_prefix=(line_number_id_prefix : String)
 - #line_number_start : Int32
 - #line_number_start=(line_number_start : Int32)
 - #line_numbers=(line_numbers : Bool)
 - #line_numbers? : Bool
 - #linkable_line_numbers=(linkable_line_numbers : Bool)
 - #linkable_line_numbers? : Bool
 - #standalone=(standalone : Bool)
 - #standalone? : Bool
 - 
        #style_defs : String
        
          
ameba:disable Metrics/CyclomaticComplexity
 - #surrounding_pre=(surrounding_pre : Bool)
 - #surrounding_pre? : Bool
 - #tab_width : Int32
 - #tab_width=(tab_width : Int32)
 - #theme : Theme
 - #theme=(theme : Theme)
 - #weight_of_bold : Int32
 - #weight_of_bold=(weight_of_bold : Int32)
 - #wrap_long_lines=(wrap_long_lines : Bool)
 - #wrap_long_lines? : Bool
 - 
        #wrap_standalone
        
          
Wrap text into a full HTML document, including the CSS for the theme
 
Instance methods inherited from class Tartrazine::Formatter
  
  
    
      format(text : String, lexer : Lexer) : String
    format, 
    
  
    
      name : String
    name, 
    
  
    
      name=(name : String)
    name=, 
    
  
    
      style_defs : String
    style_defs, 
    
  
    
      theme : Theme
    theme, 
    
  
    
      theme=(theme : Theme)
    theme=
    
  
    
    
    
  
    
    
    
    
  
    
    
    
    
  
Constructor Detail
        
        def self.new(theme : Theme = Tartrazine.theme("default-dark"), *, highlight_lines : Array(Range(Int32, Int32)) = [] of Range(Int32, Int32), class_prefix : String = "", line_number_id_prefix : String = "line-", line_number_start : Int32 = 1, tab_width : Int32 = 8, line_numbers : Bool = false, linkable_line_numbers : Bool = true, standalone : Bool = false, surrounding_pre : Bool = true, wrap_long_lines : Bool = false, weight_of_bold : Int32 = 600)
        #
      
      
      Instance Method Detail
        
        def class_prefix : String
        #
      
      
        property line_number_in_table : Bool = false property with_classes : Bool = true
        
        def class_prefix=(class_prefix : String)
        #
      
      
        property line_number_in_table : Bool = false property with_classes : Bool = true
              Description copied from class Tartrazine::Formatter
            
          
          Format the text using the given lexer.